Skip to content

Commit

Permalink
fix(generic): save new refresh_token value
Browse files Browse the repository at this point in the history
actually replace the deprecated token with the new and checked value
  • Loading branch information
becm committed Feb 13, 2025
1 parent b62021f commit 7f34d7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/Core/GenericHostProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ private async Task<ICredential> GetOAuthAccessToken(Uri remoteUri, string userNa
// Store new refresh token if we have been given one
if (!string.IsNullOrWhiteSpace(refreshResult.RefreshToken))
{
Context.CredentialStore.AddOrUpdate(refreshService, refreshToken.Account, refreshToken.Password);
Context.CredentialStore.AddOrUpdate(refreshService, refreshToken.Account, refreshResult.RefreshToken);
}

// Return the new access token
Expand Down

0 comments on commit 7f34d7d

Please sign in to comment.