Table of Contents

Class RefreshTokenClient

Namespace
Auth0.ManagementApi.Users
Assembly
Auth0.ManagementApi.dll
public class RefreshTokenClient : IRefreshTokenClient
Inheritance
RefreshTokenClient
Implements
Inherited Members
Extension Methods

Methods

DeleteAsync(string, RequestOptions?, CancellationToken)

Delete all refresh tokens for a user.

public WithRawResponseTask DeleteAsync(string userId, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

userId string
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask

Examples

await client.Users.RefreshToken.DeleteAsync("user_id");

ListAsync(string, ListRefreshTokensRequestParameters, RequestOptions?, CancellationToken)

Retrieve details for a user's refresh tokens.

public Task<Pager<RefreshTokenResponseContent>> ListAsync(string userId, ListRefreshTokensRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

userId string
request ListRefreshTokensRequestParameters
options RequestOptions
cancellationToken CancellationToken

Returns

Task<Pager<RefreshTokenResponseContent>>

Examples

await client.Users.RefreshToken.ListAsync(
    "user_id",
    new ListRefreshTokensRequestParameters
    {
        IncludeTotals = true,
        From = "from",
        Take = 1,
    }
);