Skip to content

Commit ac11c90

Browse files
authored
fix(generic): save new refresh_token value (#1838)
Missing the update of single-use-tokens will lead to continuous re-registration requirement for GCM. Check is done correctly for new value. Just the storage step used the old value instead of the new one.
2 parents c22ceba + 7f34d7d commit ac11c90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/Core/GenericHostProvider.cs

Lines changed: 1 addition & 1 deletion
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)