private async Task HandleTokenResponseAsync(OneDriveToken result, CancellationToken ct) { if (result != null && RefreshTokenHandler != null) { var refreshTokenInfo = new RefreshTokenInfo(result.RefreshToken); await RefreshTokenHandler.SaveRefreshTokenAsync(refreshTokenInfo, ct).ConfigureAwait(false); } _accessCode = result?.AccessToken; UpdateCrendentials(_client); }
public Task SaveRefreshTokenAsync(RefreshTokenInfo token, CancellationToken ct) { _token = token; return(Task.FromResult(0)); }
public Task DeleteRefreshTokenAsync(CancellationToken ct) { _token = null; return(Task.FromResult(0)); }