PHP-Open-Source-Saver / jwt-auth

🔐 JSON Web Token Authentication for Laravel & Lumen
MIT License
729 stars 113 forks source link

Logout function not working #219

Closed rexyou0831 closed 1 year ago

rexyou0831 commented 1 year ago

Logout function not working

Logout function not working even I follow the solution from #157

Your environment:

Q A
Bug? yes
New Feature? no
Framework Laravel
Framework version 9.48.0
Package version 2.1.0
PHP version 8.2.0

Steps to reproduce

Call Auth::logout() or auth()->logout()

Expected behaviour

Should be work only one time with token then the next with same token should not able to call logout

Actual behaviour

Now can use token to enter logout unlimited even I had set JWT_SHOW_BLACKLIST_EXCEPTION is true in my .env file.

Messhias commented 1 year ago

Where's the log?

rexyou0831 commented 1 year ago

There is no log provided and no error out. I'm just able to continuous to access the logout function even got middleware to block it.

Messhias commented 1 year ago

So nothing happens? Can you provide a video or something? Here at my side it's working fine.