how can black list user token by id #197
-
hi |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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. |
Beta Was this translation helpful? Give feedback.
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.