AuthStatus

AuthStatus

Enum for auth status emitted by the emitter returned from init.

Enumeration members🔗

FAILURE🔗

FAILURE:= "FAILURE"

Emits when the SDK fails to authenticate.

Defined in : auth.ts

LOGOUT🔗

LOGOUT:= "LOGOUT"

Emits when a user logs out

Defined in : auth.ts

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);
});

WAITING_FOR_POPUP🔗

WAITING_FOR_POPUP:= "WAITING_FOR_POPUP"

Emitted when inPopup is true in the SAMLRedirect flow and the popup is waiting to be triggered either programmatically or by the trigger button.

Defined in : auth.ts

Version : SDK: 1.19.0

© 2026 ThoughtSpot Inc. All Rights Reserved.