feat: auth - changed the time left before we trying to refresh the token * feat: auth - changed the time left before we trying to refresh the token Approved-by: Joakim Jäderberg
15 lines
456 B
TypeScript
15 lines
456 B
TypeScript
/**
|
|
* How many seconds before the expiry of the access token
|
|
* the client should refresh the tokens.
|
|
* Should be ~10% of the token lifetime.
|
|
* The token life time is 30 minutes
|
|
*/
|
|
export const PRE_REFRESH_TIME_IN_SECONDS = 180
|
|
|
|
/**
|
|
* How many minutes the client should be allowed to be inactive
|
|
* and still get the tokens refreshed. The inactivity control
|
|
* gets reset when the URL changes.
|
|
*/
|
|
export const MAX_KEEP_ALIVE_TIME_IN_MINUTES = 2 * 60
|