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

Do not reload the page when authentication endpoint failed #1157

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

zhx828
Copy link
Member

@zhx828 zhx828 commented Sep 24, 2024

We try to reload the page when we see 401 code so user can use server side returned token. However, in login page, the /api/authentication api will return 401 when a token is expired. Here in this fix, we white list the API from being reloaded.

This fixes oncokb/oncokb#3785

@zhx828 zhx828 added the fix Fix tag for release label Sep 24, 2024
We try to reload the page when we see 401 code so user can use server side returned token. However, in login page, the /api/authentication api will return 401 when a token is expired. Here in this fix, we white list the API from being reloaded.
@zhx828 zhx828 merged commit 7b15ec3 into oncokb:master Sep 25, 2024
6 checks passed
@zhx828 zhx828 deleted the hotfix-2 branch September 25, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Fix tag for release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User should be able to enable their account after its expired
2 participants