Skip to content

Commit 9a23d4b

Browse files
committed
docs(oauth): say why the stored-token fallback floor sits below the refresh window
1 parent e8a7934 commit 9a23d4b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/sim/lib/oauth/credential-service.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,8 +1040,9 @@ const OAUTH_REFRESH_AHEAD_WINDOW_MS = 10 * 60 * 1000
10401040
*/
10411041
const OAUTH_REFRESH_AHEAD_JITTER_MS = 60 * 1000
10421042
/**
1043-
* The validity a stored token must still have, after a failed blocking refresh, to be served
1044-
* instead of failing the request.
1043+
* The validity a stored token must still have, after a blocking refresh that never settled, to be
1044+
* served instead of failing the request. It sits below {@link OAUTH_ACCESS_TOKEN_REFRESH_WINDOW_MS}
1045+
* on purpose: the request can still use such a token, and its next caller refreshes again.
10451046
*/
10461047
const OAUTH_STORED_TOKEN_FALLBACK_MIN_MS = 30 * 1000
10471048

0 commit comments

Comments
 (0)