Skip to content

Commit 7f34d7d

Browse files
committed
fix(generic): save new refresh_token value
actually replace the deprecated token with the new and checked value
1 parent b62021f commit 7f34d7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/Core/GenericHostProvider.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private async Task<ICredential> GetOAuthAccessToken(Uri remoteUri, string userNa
161161
// Store new refresh token if we have been given one
162162
if (!string.IsNullOrWhiteSpace(refreshResult.RefreshToken))
163163
{
164-
Context.CredentialStore.AddOrUpdate(refreshService, refreshToken.Account, refreshToken.Password);
164+
Context.CredentialStore.AddOrUpdate(refreshService, refreshToken.Account, refreshResult.RefreshToken);
165165
}
166166

167167
// Return the new access token

0 commit comments

Comments
 (0)