AuthStatus
Enum for auth status emitted by the emitter returned from init.
Index🔗
Enumeration members🔗
SAML_POPUP_CLOSED_NO_AUTH🔗
SAML_POPUP_CLOSED_NO_AUTH:= "SAML_POPUP_CLOSED_NO_AUTH"
Emitted when the SAML popup is closed without authentication
Defined in : auth.ts
SDK_SUCCESS🔗
SDK_SUCCESS:= "SDK_SUCCESS"
Emits when the SDK authentication step completes successfully (e.g., token exchange, cookie set). This fires before any iframe is rendered. Use this to know that auth passed and it is safe to proceed with rendering. The callback receives no arguments.
Defined in : auth.ts
const authEE = init({ ... });
authEE.on(AuthStatus.SDK_SUCCESS, () => {
// Auth done, iframe not loaded yet
});
SUCCESS🔗
SUCCESS:= "SUCCESS"
Emits when the ThoughtSpot app inside the
embedded iframe confirms its session is active.
This fires after the iframe loads and sends back an AuthInit event.
Defined in : auth.ts
- Parameter
-
Information about the user session, with details like
userGUID.
see : EmbedEvent.AuthInit
const authEE = init({ ... });
authEE.on(AuthStatus.SUCCESS, (sessionInfo) => {
// App is loaded and authenticated
console.log(sessionInfo.userGUID);
});