Continuing on the topic, and what jwt support concerns for APIs, I don't have a login form to simulate authentication. The only way is to build a jwt token. For that, I've built the following helper method in my setup:
def jwt_token(user)
@jwt_token ||= begin
jwt_secret = ENV["JWT_SECRET"]
jwt_algorithm = "HS256"
JWT.encode(session, jwt_secret, jwt_algorithm)
end
You can already see that the problem here is, I set the project jwt_secret and jwt_algorithm, among others, directly when setting up rodauth, and there is no way to access them from the outside, which means that, as soon as I switch the defaults, this method will not work anymore. Is there a way to access roda plugin configuration variables, or would this be a feature worth implementing?