jwt-auth icon indicating copy to clipboard operation
jwt-auth copied to clipboard

How does the jwt invlalidating works ?

Open elhannaoui-ayoub opened this issue 1 year ago • 1 comments

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 ?

elhannaoui-ayoub avatar Apr 19 '24 10:04 elhannaoui-ayoub

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

abdelrhman-saeed avatar May 05 '24 04:05 abdelrhman-saeed

IMO, go for a PHP-based stable JWT lib. then implement on laravel. Or I can create my own library that's more modern.

RahulDey12 avatar Jun 23 '25 14:06 RahulDey12