Table of Contents

Class SessionsClient

Namespace
Auth0.ManagementApi.Clients
Assembly
Auth0.ManagementApi.dll
public class SessionsClient : BaseClient, ISessionsClient
Inheritance
SessionsClient
Implements
Inherited Members

Constructors

SessionsClient(IManagementConnection, Uri, IDictionary<string, string>)

Initializes a new instance of SessionsClient.

public SessionsClient(IManagementConnection connection, Uri baseUri, IDictionary<string, string> defaultHeaders)

Parameters

connection IManagementConnection
baseUri Uri
defaultHeaders IDictionary<string, string>

Methods

DeleteAsync(string, CancellationToken)

Delete a session by Id.

public Task DeleteAsync(string id, CancellationToken cancellationToken = default)

Parameters

id string

Id of the session to delete.

cancellationToken CancellationToken

CancellationToken

Returns

Task

GetAsync(SessionsGetRequest, CancellationToken)

Retrieve session information.

public Task<Sessions> GetAsync(SessionsGetRequest request, CancellationToken cancellationToken = default)

Parameters

request SessionsGetRequest

SessionsGetRequest

cancellationToken CancellationToken

CancellationToken

Returns

Task<Sessions>

RevokeAsync(string, CancellationToken)

Revokes a session by Id and all associated refresh tokens.

public Task RevokeAsync(string id, CancellationToken cancellationToken = default)

Parameters

id string

Id of the session to revoke

cancellationToken CancellationToken

CancellationToken

Returns

Task