Replies: 1 comment 2 replies
-
I'm assuming Jeremy designed it that way for consistency, so that you can read JWT tokens even if the data is empty (= user is not logged in). For the I believe you could skip it by overriding set_jwt_token do |token|
next if request.path == reset_password_request_path
super(token)
end |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Why does JWT authentication always return access tokens to Rodauth routes? Is there a way to limit which routes it returns a JWT from?
For example, when I call
forgot-password-request
with an email when using JWT auth, it returns an access token for the email I am requesting a password reset email for, which I can then use in subsequent requests as anAuthorization
header.Beta Was this translation helpful? Give feedback.
All reactions