Table of Contents

Interface IAccessTokenStore

Namespace
Tenduke.Core.Auth.TokenStore
Assembly
Tenduke.Core.dll

Store for the access token for the authenticated user.

public interface IAccessTokenStore : IDisposable
Inherited Members

Properties

Token

Gets the current access token.

TokenResponse? Token { get; }

Property Value

TokenResponse

Methods

LoadAsync()

Loads the access token for the authenticated user.

Task<TokenResponse?> LoadAsync()

Returns

Task<TokenResponse>

The TokenResponse if one is present.

LoadAsync(CancellationToken)

Loads the access token for the authenticated user.

Task<TokenResponse?> LoadAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<TokenResponse>

The TokenResponse if one is present.

SaveAsync(TokenResponse?)

Saves the access token for the authenticated user.

Task SaveAsync(TokenResponse? tokenResponse)

Parameters

tokenResponse TokenResponse

The TokenResponse to be saved.

Returns

Task

The task representing the asynchronous operation.

SaveAsync(TokenResponse?, CancellationToken)

Saves the access token for the authenticated user.

Task SaveAsync(TokenResponse? tokenResponse, CancellationToken cancellationToken)

Parameters

tokenResponse TokenResponse

The TokenResponse to be saved.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task

The task representing the asynchronous operation.