Interface: Api
Entry point for auth to Smokeball.Methods
connect()
connect(Generates fresh OAuth tokens for the current session. Uses the client id passed in the SDK init request to generate the OAuth tokens.request):Promise<OAuthTokenResponse>
Parameters
request
ConnectRequest
Returns
Promise<OAuthTokenResponse>
the current OAuth token response.
Example
idToken()
idToken():Promise<string>
Returns
Promise<string>
the current id token.
Deprecated
Use connect() instead. Retrieves the id token. This token can be used to access the api. Only available to trusted clients.Example
token()
token():Promise<string>
Returns
Promise<string>
the current access token.