Interface ITokenRefreshProvider
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
cancellationTokenCancellationTokenA token to cancel the operation.
Returns
- Task<TokenRefreshInfo>
The updated TokenRefreshInfo.