DefaultTokenProvider Class
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
Constructor | Description |
---|---|
(constructor)(jwt) | Constructs a new instance of the DefaultTokenProvider class |
Methods
Method | Return Type | Description |
---|---|---|
fetchOrdererToken() | Promise<ITokenResponse> | |
fetchStorageToken() | Promise<ITokenResponse> |
Constructor Details
(constructor)
Constructs a new instance of the DefaultTokenProvider
class
Signature
constructor(jwt: string);
Parameters
Parameter | Type | Description |
---|---|---|
jwt | string |
Method Details
fetchOrdererToken
Signature
fetchOrdererToken(): Promise<ITokenResponse>;
Returns
Return type: Promise<ITokenResponse>
fetchStorageToken
Signature
fetchStorageToken(): Promise<ITokenResponse>;
Returns
Return type: Promise<ITokenResponse>