tymondesigns / jwt-auth

🔐 JSON Web Token Authentication for Laravel & Lumen
https://jwt-auth.com
MIT License
11.26k stars 1.55k forks source link

Invalidate all tokens for user #801

Open matthewbdaly opened 8 years ago

matthewbdaly commented 8 years ago

Is it possible to invalidate all of a given user's tokens?

I have a scenario where I'm building a REST API for a dating app that requires the facility to blacklist users. I can deny them the ability to log in again and create messages, but I haven't yet found a way to immediately invalidate all their tokens. I can't find a method of doing this in the wiki.

prashantidealittechno commented 8 years ago

I have the same scenario to invalidate the old token after generate new token, Me too do not found any solution do you find something?

hfpf commented 7 years ago

This is something you would need to implement yourself. See #300