Merged in feat/auth-refresh-token-time (pull request #1345)

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
This commit is contained in:
Linus Flood
2025-02-19 09:00:30 +00:00
parent 7c0f9084b6
commit d27163a915

View File

@@ -1,8 +1,10 @@
/**
* How many seconds before the expiry of the access token
* the client should refresh the tokens
* 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 = 30
export const PRE_REFRESH_TIME_IN_SECONDS = 180
/**
* How many minutes the client should be allowed to be inactive