@smokeballdev/smokeball-client-sdkDocumentation Index
Fetch the complete documentation index at: https://docs.smokeball.com/llms.txt
Use this file to discover all available pages before exploring further.
Interface: Api
Entry point for auth to Smokeball.Methods
connect()
connect(Establishes a new token session that can be used to generate fresh OAuth tokens.request):Promise<TokenSession>
Parameters
request
ConnectRequest
Returns
Promise<TokenSession>
a token session.
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.