TigerJwtAuthProvider
Home > @gooddata/sdk-backend-tiger > TigerJwtAuthProvider
TigerJwtAuthProvider class
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
The implementation of authentication provider uses an JWT (JSON Web Token) as bearer of authentication.
Signature:
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.
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(jwt, notAuthenticatedHandler, tokenIsAboutToExpireHandler, secondsBeforeTokenExpirationToCallReminder) | (ALPHA) Create a new instance of TigerJwtAuthProvider |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
updateJwt | (jwt: string, secondsBeforeTokenExpirationToCallReminder?: number) => void | (ALPHA) Update JWT value of the API client |