Skip to content

Commit

Permalink
Merge pull request IdentityModel#1238 from longsleep/longsleep-keep-i…
Browse files Browse the repository at this point in the history
…d-token-refresh

Keep existing id_token if not in token result
  • Loading branch information
brockallen authored Dec 8, 2020
2 parents 5469105 + 8e6556d commit e61cf89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UserManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export class UserManager extends OidcClient {

return idTokenValidation.then(() => {
Log.debug("UserManager._useRefreshToken: refresh token response success");
user.id_token = result.id_token;
user.id_token = result.id_token || user.id_token;
user.access_token = result.access_token;
user.refresh_token = result.refresh_token || user.refresh_token;
user.expires_in = result.expires_in;
Expand Down

0 comments on commit e61cf89

Please sign in to comment.