Table of Contents

Interface ITokenProvider

Namespace
Auth0.ManagementApi
Assembly
Auth0.ManagementApi.dll

Abstraction for supplying access tokens to the Management API client. Implement this interface to support custom token strategies.

public interface ITokenProvider
Extension Methods

Methods

GetTokenAsync(CancellationToken)

Returns a valid access token, fetching or refreshing as needed.

Task<string> GetTokenAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task<string>