TigerJwtAuthProvider
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
The implementation of authentication provider uses an JWT (JSON Web Token) as bearer of authentication.
export declare class TigerJwtAuthProvider extends TigerTokenAuthProvider
Extends: TigerTokenAuthProvider
Remarks
You can provide token at construction time, and it will be passed on all calls to Tiger APIs.
Keep in mind that this authentication provider can lead to security holes; having the token available as JavaScript variable in an UI application means anyone can find it and use it for themselves while the token is valid. UI applications should prefer ContextDeferredAuthProvider instead.
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
(jwt: string, secondsBeforeTokenExpirationToCallReminder?: number) => void | (ALPHA) Update JWT value of the API client |
Property details
TigerJwtAuthProvider.updateJwtpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Update JWT value of the API client
updateJwt: (jwt: string, secondsBeforeTokenExpirationToCallReminder?: number) => void;