bito-code-review[bot] commented on code in PR #40870:
URL: https://github.com/apache/superset/pull/40870#discussion_r3377014521


##########
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:
   <!-- Bito Reply -->
   The addition of the unit test in `guestTokenRefresh.test.ts` effectively 
addresses the reviewer's concern regarding the missing test coverage for the 
`DEFAULT_TOKEN_REFRESH_RETRY_MS` constant. By asserting that the constant holds 
the expected positive value, the retry behavior is now properly validated.



-- 
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]

Reply via email to