-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(session/data): next refresh time should account for inactivity ti…
…meouts The default auto-refresh behaviour occurs 5 minutes before tokens expire, at the earliest. Without inactivity however, tokens are still refreshed at any point after this, as long as the session has not ended. This however, means that refreshes don't occur often enough when inactivity timeouts are enabled. In practice, the session is only refreshed if a request is received within the 5 minute leeway window between a token's expiry and the inactivity timeout. This commit will apply auto-refreshes at the half-life of the inactivity timeout instead, so that users' sessions and timeouts are properly extended on activity.
- Loading branch information
Showing
2 changed files
with
68 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters