-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: OIDC DB Auth
-
None
-
3
-
Iteration Whale, Iteration Xantic Sargo
-
Not Needed
When storing tokens in the plugin’s storeTokenSet method, set an unref’ed setTimeout() to perform tryRefresh() 5 minutes before the access token expires (and handle the case in which the expiration time is less than 5 minutes here somehow as well). Ensure that only one tryRefresh() is active at a given time and that calling tryRefresh() early cancels the timer.