Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
after refreshing the token, if the response does not contain a new Re…
Browse files Browse the repository at this point in the history
…freshToken, retrieve the previous one
  • Loading branch information
hybrid2102 committed Nov 28, 2023
1 parent c2aa94b commit 2b30b13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public async Task<UserToken> RefreshAccessTokenAsync(
token.Expiration = response.ExpiresIn == 0
? DateTimeOffset.MaxValue
: DateTimeOffset.UtcNow.AddSeconds(response.ExpiresIn);
token.RefreshToken = response.RefreshToken;
token.RefreshToken = response.RefreshToken ?? userToken.RefreshToken;
token.Scope = response.Scope;
}

Expand Down

0 comments on commit 2b30b13

Please sign in to comment.