tymondesigns / jwt-auth

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

Get All active tokens #2231

Open iamkhusainov7 opened 8 months ago

iamkhusainov7 commented 8 months ago

Subject of the issue

I have gone through the documentation but I haven't found a method that returns all active tokens. I have a use case, where I need to revoke the previous token or all active tokens when the user logs in using a new device. I know that your library is caching the token. But it would be really useful to have such method.