Type Alias AccessTokenProvider

AccessTokenProvider: () => string | Promise<string>

Token provider: a synchronous or asynchronous function that returns an access token string. Called on every request to allow automatic refresh.

Type declaration

    • (): string | Promise<string>
    • Returns string | Promise<string>