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

Access token refresh fails when device is in sleep mode #279

Open
ValentinFutterer opened this issue Aug 5, 2024 · 0 comments · May be fixed by #294
Open

Access token refresh fails when device is in sleep mode #279

ValentinFutterer opened this issue Aug 5, 2024 · 0 comments · May be fixed by #294
Labels
bug Something isn't working

Comments

@ValentinFutterer
Copy link
Collaborator

Describe the bug
When the device is in sleep mode, the access token is not refreshed as it should be. This leads to an 401 error - for the user it looks like the page suddenly just started not responding. The workaround is to open a new tab with the same url - this is of course not apparent for users.

Is this a regression?
No.

To Reproduce
Steps to reproduce the behavior:

keep the device in sleep mode, when the refresh is scheduled. The you can observe the behaviour.

Expected behavior
the application should either refresh the token when the user comes back online, or should log the user out. You can take inspiration from here manfredsteyer/angular-oauth2-oidc#820.

Environment

  • Chrome 127.0.6533.89
  • Damap version 4.0.0
@ValentinFutterer ValentinFutterer added the bug Something isn't working label Aug 5, 2024
@GeoffreyKarnbach GeoffreyKarnbach self-assigned this Aug 13, 2024
@GeoffreyKarnbach GeoffreyKarnbach linked a pull request Aug 19, 2024 that will close this issue
6 tasks
@GeoffreyKarnbach GeoffreyKarnbach linked a pull request Aug 19, 2024 that will close this issue
6 tasks
@GeoffreyKarnbach GeoffreyKarnbach removed their assignment Aug 19, 2024
@rekt-hard rekt-hard assigned rekt-hard and unassigned rekt-hard Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants