Interface IAccessTokenRefreshService
Service to refresh an access token.
public interface IAccessTokenRefreshServiceRemarks
This type is used when the OpenID Connect ID Token has expired. The details of the access token described in the TokenResponse are used to make a request to the configured token endpoint for a refresh grant type.
Refresh cannot be attempted if there was no refresh token issued with the access token. Not all Authorization Server implmentations return a new ID Token with the new access token when the refresh token is used.
Methods
RefreshAsync(TokenResponse)
Refreshes the current token using the refresh token.
Task<TokenResponse?> RefreshAsync(TokenResponse currentToken)Parameters
- currentTokenTokenResponse
- Current token from previous authentication. 
Returns
- Task<TokenResponse>
- A new token.