The configuration object containing ThoughtSpot host, authentication mechanism and so on.
eg: authStatus = init(config); authStatus.on(AuthStatus.FAILURE, (reason) => { // do something here });
event emitter which emits events on authentication success, failure and logout. AuthStatus
Logout from ThoughtSpot. This also sets the autoLogin flag to false, to prevent the SDK from automatically logging in again.
You can call the init
method again to re login, if autoLogin is set to true in this
second call it will be honored.
This flag when passed will not disable autoLogin
Promise which resolves when logout completes.
Prefetches static resources from the specified URL. Web browsers can then cache the prefetched resources and serve them from the user's local disk to provide faster access to your app.
The URL provided for prefetch
Initialize the ThoughtSpot embed SDK globally and perform authentication if applicable.