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

More retries when resuming non-stale account #4156

Merged
merged 1 commit into from
May 22, 2024
Merged

Conversation

estrattonbailey
Copy link
Member

A few of us have noticed getting signed out occasionally. For me anyway, this seems to happen when resuming from a background state e.g. foregrounding the app, or opening my laptop after being away.

The thinking in this PR is: if we have checked your JWT and it's not expired, we want to be very sure the resumeSession call returns a real failure, and not some sort of network issue while the device reconnects to its wifi/cellular.

Other things that could be done here:

  • check for network errors and retry those, but fail on actual auth errors
  • add a back-off, so requests are spaced out a bit

Copy link

render bot commented May 21, 2024

Copy link

Old size New size Diff
6.87 MB 6.87 MB 0 B (0.00%)

Copy link
Member

@mozzius mozzius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cant think of any downsides

@estrattonbailey
Copy link
Member Author

I'll have a look at improving this based on the things I mentioned above, but yeah for now this won't hurt

@estrattonbailey estrattonbailey merged commit b937372 into main May 22, 2024
6 checks passed
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.

3 participants