Table of Contents


init(embedConfig: EmbedConfig ) : AuthEventEmitter

Initializes the Visual Embed SDK globally and perform authentication if applicable. This function needs to be called before any ThoughtSpot component like liveboard etc can be embedded. But need not wait for AuthEvent.SUCCESS to actually embed. That is handled internally.

Function Parameters


The configuration object containing ThoughtSpot host, authentication mechanism and so on.


Version : SDK: 1.0.0 | ThoughtSpot, 7.2.1

  const authStatus = init({
    thoughtSpotHost: '',
    authType: AuthType.None,
  authStatus.on(AuthStatus.FAILURE, (reason) => { // do something here });

Defined in : embed/base.ts