tymondesigns / jwt-auth

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

Duplicate query to blacklisted tokens table #2252

Open medilies opened 3 months ago

medilies commented 3 months ago

Subject of the issue

This part of code https://github.com/tymondesigns/jwt-auth/blob/2.x/src/JWTGuard.php#L78-L79 sends the following query twice:

select top 1 * from <table> where [key] = <token>"

Your environment

Q A
Bug? yes
New Feature? no
Framework Laravel
Framework version 9.47.0
Package version dev-develop
PHP version 8.1.6