tymondesigns / jwt-auth

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

How does the jwt invlalidating works ? #2255

Open elhannaoui-ayoub opened 7 months ago

elhannaoui-ayoub commented 7 months ago

Please how can you invalidate a token to log out a user ? I saw yout documentation i found that you can invalidate a token ( auth()->invalidate() ) or blacklist it without the need of a database , how can that be possible ?

abdelrhman-saeed commented 6 months ago

i asked the same question too, there is no database to black list the tokens, maybe he has some type of serialized array that he stores the black listed tokens ? idk

and its documentation is not complete i don't think this package is reliable