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

Prompt for reauth in case of 498 drop #2883

Merged
merged 1 commit into from
Sep 9, 2024
Merged

Prompt for reauth in case of 498 drop #2883

merged 1 commit into from
Sep 9, 2024

Conversation

moughxyz
Copy link
Member

@moughxyz moughxyz commented Sep 9, 2024

Fixes issue where users saw "Sync error: The provided access token has expired" in the footer without being asked to reauth. With this fix, users will now be asked to reauth.

To replicate this behavior, comment out these lines: https://github.com/standardnotes/app/blob/fix-498-drop/packages/api/src/Domain/Http/HttpService.ts#L173-L196

This tells us likely that one of the conditions in the if is not being met, such as the request being a refresh request (and thus the server perhaps responding with a 498 to a refresh request, which it should not do).

@moughxyz moughxyz merged commit 1cbf933 into main Sep 9, 2024
8 checks passed
@moughxyz moughxyz deleted the fix-498-drop branch September 9, 2024 14:51
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.

1 participant