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
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
cancellationTokenCancellationTokenA 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
tokenResponseTokenResponseThe 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
tokenResponseTokenResponseThe TokenResponse to be saved.
cancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task
The task representing the asynchronous operation.