Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Commit

Permalink
Fix incorrect log message #1110
Browse files Browse the repository at this point in the history
  • Loading branch information
brockallen committed Jan 30, 2021
1 parent 9e28f3b commit 88c7c7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ResponseValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ export class ResponseValidator {
Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint");

if (claims.sub !== response.profile.sub) {
Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in access_token");
return Promise.reject(new Error("sub from user info endpoint does not match sub in access_token"));
Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in id_token");
return Promise.reject(new Error("sub from user info endpoint does not match sub in id_token"));
}

response.profile = this._mergeClaims(response.profile, claims);
Expand Down

0 comments on commit 88c7c7a

Please sign in to comment.