Skip to content

Commit b7ba3d3

Browse files
committed
Fix log and error messages
The messsage was referring to id_token but it means access_token which is used by the userinfo endpoint
1 parent a91ea24 commit b7ba3d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ResponseValidator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ export default class ResponseValidator {
136136
Log.debug("user info claims received from user info endpoint");
137137

138138
if (claims.sub !== response.profile.sub) {
139-
Log.error("sub from user info endpoint does not match sub in id_token");
140-
return Promise.reject(new Error("sub from user info endpoint does not match sub in id_token"));
139+
Log.error("sub from user info endpoint does not match sub in access_token");
140+
return Promise.reject(new Error("sub from user info endpoint does not match sub in access_token"));
141141
}
142142

143143
response.profile = this._mergeClaims(response.profile, claims);

0 commit comments

Comments
 (0)