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
IManagementConnectionbaseUri
UridefaultHeaders
IDictionary<string, string>
Methods
DeleteAsync(string, CancellationToken)
Delete a session by Id.
public Task DeleteAsync(string id, CancellationToken cancellationToken = default)
Parameters
id
stringId of the session to delete.
cancellationToken
CancellationToken
Returns
GetAsync(SessionsGetRequest, CancellationToken)
Retrieve session information.
public Task<Sessions> GetAsync(SessionsGetRequest request, CancellationToken cancellationToken = default)
Parameters
request
SessionsGetRequestcancellationToken
CancellationToken
Returns
RevokeAsync(string, CancellationToken)
Revokes a session by Id and all associated refresh tokens.
public Task RevokeAsync(string id, CancellationToken cancellationToken = default)
Parameters
id
stringId of the session to revoke
cancellationToken
CancellationToken