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

Fix: clear sessionstorage on invalid AccessToken #69

Merged

Conversation

fashberg
Copy link
Contributor

We're using AzureAD-OpenID and sometimes the refresh token in persistent local storage gets invalid.
In this case seatsurfing is not usable unless you clear manually all session-storage which is a pain for us admins.

This fix clears local storage if refreshtoken is invalid and login is displayed.

Can be tested by changing refreshtoken in developer tools to some crap and then reopen browser.

Old bug:
image

@virtualzone virtualzone merged commit b805dc9 into seatsurfing:master Oct 26, 2022
@virtualzone
Copy link
Collaborator

Thanks for your contribution @fashberg!

@fashberg fashberg deleted the fixCrashOnInvalidAccessToken branch January 5, 2023 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants