Skip to content

Fix persistent remember-me token cleanup on logout - #19586

Open
yashdotdev13 wants to merge 1 commit into
spring-projects:mainfrom
yashdotdev13:issue-10241-remember-me-logout
Open

Fix persistent remember-me token cleanup on logout#19586
yashdotdev13 wants to merge 1 commit into
spring-projects:mainfrom
yashdotdev13:issue-10241-remember-me-logout

Conversation

@yashdotdev13

Copy link
Copy Markdown

Fixes gh-10241

When a user logs out without an Authentication, PersistentTokenBasedRememberMeServices previously cleared the remember-me cookie but did not remove the corresponding persistent token.

This change resolves the token from the remember-me cookie during logout and removes the associated user's persistent tokens when no Authentication is available.

Tests added to verify:

  • Persistent tokens are removed when logout occurs without an Authentication and a valid remember-me cookie is present.
  • Remember-me tokens are invalidated when the session is invalidated.

Signed-off-by: 98001yash <yashchauhan.gaya@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remember-me token is not invalidated on logout with expired or invalid session

2 participants