Table of Contents

Interface ITokenRefreshProvider

Namespace
Arc4u.OAuth2.Token
Assembly
Arc4u.OAuth2.AspNetCore.Authentication.dll

Refreshes the access token of the current user with his refresh token.

public interface ITokenRefreshProvider

Methods

RefreshTokenAsync(CancellationToken)

Requests a new access token, and a new refresh token when the authority gives one, and updates the scoped TokenRefreshInfo.

Task<TokenRefreshInfo?> RefreshTokenAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task<TokenRefreshInfo>

The updated TokenRefreshInfo.