Auth
Managing the session between jexia-sdk-js and Jexia.
Constructor Summary
Public Constructor | ||
public |
constructor(options: Object) Create a new Auth object with some initial values. |
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
Method Summary
Public Methods | ||
public |
autoRefresh(delay: number) Refresh the session after a given time delay |
|
public |
Get current refresh token |
|
public |
Get current token |
|
public |
Initialize a new session between jexia-sdk-js and Jexia |
|
public |
setRefreshToken(refreshToken: string) Set current refresh token |
|
public |
Set current token |
Public Constructors
Public Members
Public Methods
public autoRefresh(delay: number) source
Refresh the session after a given time delay
Params:
Name | Type | Attribute | Description |
delay | number | delay in milliseconds |
Emit:
jexia.auth.token |
emit an authentication event when we successfully refreshed the session with Jexia |