Skip to content

how can black list user token by id #197

Answered by eschricker
walide67 asked this question in Q&A
Discussion options

You must be logged in to vote

This is not supported by the library itself. The tokens are stateless and not stored in the database or else where. Just blacklisted tokens are stored in the cache.

You could implement your own auth middleware which rejects the tokens of a user, which has been created before the updated_at timestamp on the user.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Messhias
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