Skip to content

JWTAuth::parseToken()->authenticate(); #2290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Cofa12 opened this issue May 24, 2025 · 1 comment
Open

JWTAuth::parseToken()->authenticate(); #2290

Cofa12 opened this issue May 24, 2025 · 1 comment

Comments

@Cofa12
Copy link

Cofa12 commented May 24, 2025

There is a security issue with that function , it use the sun which is usually id . but think about that approach , If I authenticated and get the id 1 and make a process depends on JWT token then I deleted the DB when I authenticated again the JWT SUB will take the id 1 . so the previous one is valid .
How ??

@seniorit
Copy link

This is perfectly normal behavior, because the token hasn't expired yet. However, it's worth noting that you're not considering the secret key as part of the security component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants