Aran
06/29/2026, 9:22 AMAnswer Overflow
06/29/2026, 9:23 AMspotter-code
06/29/2026, 9:23 AMautoLogin: true is the control that tells the SDK to request a new token before token/session expiry; refreshAuthTokenOnNearExpiry is documented in the config API surface, but I could not find an official doc section that defines an exact lead-time (for example, “N seconds before exp”). So there is no documented guaranteed pre-expiry window you can rely on publicly right now.
What is explicitly documented:
- getAuthToken is the callback used by cookieless trusted auth to fetch tokens.
- autoLogin: true is what enables refresh behavior before expiry.
- Cookieless mode uses bearer token flow (no browser session cookie).
Given your observation (getAuthToken only after /callosum/v1/session/isactive 401), that behavior can be expected in practice if the SDK does not proactively schedule refresh in your runtime path/version combo, or if refresh is tied to activity/check cycles rather than a strict pre-exp timer. The docs do not publish the proactive trigger algorithm/timing for 1.49.0 + 26.7.0.cl, so you should treat “pre-exp refresh” as best-effort unless validated by ThoughtSpot support for that exact build. citeturn0commentary0
Suggestions:
- Ensure autoLogin: true is set in init() (this is the documented switch for pre-expiry refresh behavior). citeturn0commentary0
- Keep getAuthToken fast and always returning a fresh token Promise.
- If you need deterministic refresh timing, implement server-side token TTL policy + observability and open a ThoughtSpot support ticket with:
- cluster version 26.7.0.cl
- SDK 1.49.0
- HAR showing isactive 401 → getAuthToken sequence
- whether iframe is idle/backgrounded when expiry occurs
- If you want, I can help you build a minimal repro harness (single HTML + verbose SDK/network logging) to confirm whether proactive arming ever occurs in your environment.
Docs:spotter-code
06/29/2026, 9:23 AMgetAuthToken, autoLogin behavior): https://developers.thoughtspot.com/docs/trusted-auth-sdk#_overview
- getAuthToken callback details: https://developers.thoughtspot.com/docs/trusted-auth-sdk#_getauthtoken
- `AuthType.TrustedAuthTokenCookieless`: https://developers.thoughtspot.com/docs/Enumeration_AuthType#_trustedauthtokencookielessSwarnika
07/01/2026, 6:59 PMAran
07/02/2026, 8:57 AMSwarnika
07/02/2026, 6:27 PMSwarnika
07/03/2026, 12:45 PMSwarnika
07/03/2026, 12:46 PMAran
07/03/2026, 12:54 PMAran
07/03/2026, 12:54 PMSwarnika
07/03/2026, 12:59 PM