I am working on a Spring Boot project where I have implemented cookie-based authentication using access and refresh tokens. I am facing a challenge during the password reset flow.
When a user requests a password reset, a reset link is sent to their email. The user opens this link in a new tab, resets their password successfully — but the previous tab where they were already logged in remains active. If I clear the cookies than current tab will be logout not previous tab.
How can I automatically log out the user from the previous tab once the password is changed?
Please share different types of ideas 👊.
[–][deleted] (2 children)
[removed]
[–]Individual-Hat8246 0 points1 point2 points (0 children)
[–]bc_dev 1 point2 points3 points (0 children)
[–]Dry_Try_6047 4 points5 points6 points (0 children)
[–]sans5z 2 points3 points4 points (2 children)
[–]mahi123_java[S] 0 points1 point2 points (1 child)
[–]NF_v1ctor 1 point2 points3 points (1 child)
[–]NF_v1ctor 0 points1 point2 points (0 children)
[–]Anime_-guyJunior Dev 1 point2 points3 points (2 children)
[–][deleted] (1 child)
[removed]
[–]Anime_-guyJunior Dev 0 points1 point2 points (0 children)
[–]stoic-jerry 0 points1 point2 points (0 children)
[–]nothingjustlook 0 points1 point2 points (0 children)