Methods
(static) configure(param0opt)
setting Api key
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
param0 |
object |
<optional> |
{} |
Properties
|
- Source:
(static) generateAPIKey() → {string}
Generate a new API Key, old API KEY will be discareded
It require a userToken to be set.
- Source:
Returns:
api key
- Type
- string
(async, static) generateCustomAuthPassword() → {string}
Generating a one time password.
It require a IdToken to be set.
- Source:
Returns:
- Custom Password.
- Type
- string
(static) getUserClaims() → {UserClaims}
- Source:
Returns:
- Type
- UserClaims
(async, static) getUserToken(param0opt) → {string}
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
param0 |
object |
<optional> |
{} |
Properties
|
- Source:
Returns:
- user Token.
- Type
- string
(static) logout()
clear user.
- Source:
(static) setUserToken(token, accessLevel)
Manually setting userToken
Parameters:
Name | Type | Description |
---|---|---|
token |
string | |
accessLevel |
AccessLevel |
- Source: