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

Avoid double call to the Database #2

Closed ghost closed 1 year ago

ghost commented 1 year ago

By retrieving the user from the authentication you avoid a double call to the database which in turn increases your performance. Also forgot to delete line 37 in my pull.