Table of Contents

Interface ISessionsClient

Namespace
Auth0.ManagementApi.Clients
Assembly
Auth0.ManagementApi.dll
public interface ISessionsClient

Methods

DeleteAsync(string, CancellationToken)

Delete a session by Id.

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.

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.

Task RevokeAsync(string id, CancellationToken cancellationToken = default)

Parameters

id string

Id of the session to revoke

cancellationToken CancellationToken

CancellationToken

Returns

Task