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

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

Open Cofa12 opened this issue 7 months ago • 1 comments

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 ??

Cofa12 avatar May 24 '25 11:05 Cofa12

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.

seniorit avatar Jun 14 '25 11:06 seniorit