ali-bouali / spring-boot-3-jwt-security

Sample project on how to implement JWT security based using Spring boot 3 and Spring security 6
https://aliboucoding.com/p/securing-your-spring-boot-3-0-applications-with-json-web-tokens-jwt
Apache License 2.0
1.86k stars 870 forks source link

fix findAllValidTokenByUser query #15

Closed filipstojakovic closed 1 year ago

filipstojakovic commented 1 year ago

in findAllValidTokenByUser query last condition should be (t.expired = false and t.revoked = false) becouse we want them both not expired and not revoked

ali-bouali commented 1 year ago

a token can be revoked or expired or both of them at the same time.

ali-bouali commented 1 year ago

a token can be revoked or expired or both of them at the same time.