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 AuthStatus.SUCCESS to actually embed. That is handled internally.
Version : SDK: 1.0.0 | ThoughtSpot ts7.april.cl, 7.2.1
Function Parameters
- embedConfig
-
-
embedConfig: EmbedConfig
-
The configuration object containing ThoughtSpot host, authentication mechanism and so on.
Returns
const authStatus = init({
thoughtSpotHost: 'https://my.thoughtspot.cloud',
authType: AuthType.None,
});
authStatus.on(AuthStatus.FAILURE, (reason) => { // do something here });
Defined in : embed/base.ts