Skip to content

Logout with active_sessions feature does not invalidate JWT #238

Answered by janko
Samuelodan asked this question in Q&A
Discussion options

You must be logged in to vote

Are you calling rodauth.check_active_session in the route block? That's what actually checks whether the current session is active and doesn't let the request go through otherwise.

route do |r|
  rodauth(:v1).check_active_session
  r.rodauth(:v1)
end

I just added a test to the official demo app, and it works just fine, logout does invalidate the previous token.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Samuelodan
Comment options

@Samuelodan
Comment options

@janko
Comment options

@Samuelodan
Comment options

Answer selected by Samuelodan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants