DefaultTokenProvider Class

Packages > @fluidframework/routerlicious-driver > DefaultTokenProvider

Default token provider in case the host does not provide one. It simply caches the provided jwt and returns it back.

Signature:

export declare class DefaultTokenProvider implements ITokenProvider 

Implements: ITokenProvider

Constructors

List of constructors for this class
Constructor Modifiers Description
(constructor)(jwt) Constructs a new instance of the DefaultTokenProvider class

Methods

List of methods on this class
Method Modifiers Description
fetchOrdererToken()
fetchStorageToken()

Constructors

DefaultTokenProvider.(constructor)

Constructs a new instance of the DefaultTokenProvider class

Signature:

constructor(jwt: string);

Parameters

List of parameters
Parameter Type Description
jwt string

Methods

fetchOrdererToken

Signature:

fetchOrdererToken(): Promise<ITokenResponse>;

Returns:

Promise<ITokenResponse>

fetchStorageToken

Signature:

fetchStorageToken(): Promise<ITokenResponse>;

Returns:

Promise<ITokenResponse>