IAuthorizationTokenProvider interface

Interface for a class that can retrieve authorization tokens to be used in fetch requests.

Methods

getAuthorizationHeader(boolean)

Gets the authorization header to use in a fetch request

Method Details

getAuthorizationHeader(boolean)

Gets the authorization header to use in a fetch request

function getAuthorizationHeader(forceRefresh?: boolean): Promise<string>

Parameters

forceRefresh

boolean

If true, indicates that we should get a new token, if applicable for current provider.

Returns

Promise<string>

the value to use for the Authorization header in a request.