public RefreshStoredTokenAsync ( IAuthTokenStoreReader tokenStore, string id, CancellationToken cancellationToken ) : Task |
||
tokenStore | IAuthTokenStoreReader | |
id | string | |
cancellationToken | CancellationToken | |
return | Task |
public async Task<RefreshStoredTokenPayload> RefreshStoredTokenAsync(
[Service] IAuthTokenStoreReader tokenStore,
string id,
CancellationToken cancellationToken)
{
TokenStoreHeader header = await tokenStore.RefreshAsync(id, cancellationToken);
return new RefreshStoredTokenPayload(header);
}