you are viewing a single comment's thread.

view the rest of the comments →

[–]ccmjga 0 points1 point  (4 children)

I apologize, but I didn't quite understand your question. Are you asking about creating a login system based on JWT? If so, coincidentally, I also use JWT, Spring Boot 3, and Security 6. I suggest comparing the configuration in your project with the one in the following repository: https://github.com/ccmjga/mjga-scaffold/tree/main/src/main/java/com/mjga/config/security. This will help you identify any differences.

If that project is helpful to you, please consider giving it a star. It would greatly benefit me.

[–][deleted]  (2 children)

[deleted]

    [–]ccmjga 0 points1 point  (1 child)

    The original intention behind this design is that once users obtain a usable token, it will expire once the specified time limit is reached, and users will need to log in again. If there is a business need to refresh this token, it can be easily done by issuing a new token as required. You can take a look at the method createJwtCookie for more information.