rusackas commented on code in PR #40870:
URL: https://github.com/apache/superset/pull/40870#discussion_r3377014174
##########
superset-embedded-sdk/src/guestTokenRefresh.ts:
##########
@@ -21,6 +21,7 @@ import { jwtDecode } from "jwt-decode";
export const REFRESH_TIMING_BUFFER_MS = 5000 // refresh guest token early to
avoid failed superset requests
export const MIN_REFRESH_WAIT_MS = 10000 // avoid blasting requests as fast as
the cpu can handle
export const DEFAULT_TOKEN_EXP_MS = 300000 // (5 min) used only when parsing
guest token exp fails
+export const DEFAULT_TOKEN_REFRESH_RETRY_MS = 10000 // wait before retrying a
failed/timed-out token refresh
Review Comment:
Good call. Added a unit test in `guestTokenRefresh.test.ts` (44304ed7bd)
asserting `DEFAULT_TOKEN_REFRESH_RETRY_MS` is the expected positive value, so
the retry constant is now covered.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]