Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unset attemptedTransition on invalidation #2234

Merged
merged 1 commit into from
Aug 27, 2020

Conversation

marcoow
Copy link
Member

@marcoow marcoow commented Aug 19, 2020

This makes sure that the session service's attemptedTransition property is cleared when the session is invalidated. Otherwise you could run into situations where a user logs in and they are redirected to a route that they have tried to access previously but that transition did not actually trigger the current redirect to the login route (or there was no redirect at all and they just clicked on a direct link to the login route).

closes #2176

@marcoow marcoow added the bug label Aug 19, 2020
@marcoow marcoow requested a review from a team August 19, 2020 14:34
@marcoow marcoow force-pushed the unset-attempted-transition-on-invalidation branch from 16ef3c0 to e26d55a Compare August 19, 2020 14:46
@marcoow marcoow merged commit b66e862 into master Aug 27, 2020
@delete-merged-branch delete-merged-branch bot deleted the unset-attempted-transition-on-invalidation branch August 27, 2020 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

session.invalidate() continues to store attemptedTransition
2 participants