Skip to content

Commit

Permalink
Do not lowercase org_name claim (#887)
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck authored Jul 18, 2023
1 parent 1935ff8 commit 00ea4fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth/idToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const validate = function (token, options) {
);
}

if (payload.org_name.toLowerCase() !== options.organization.toLowerCase()) {
if (payload.org_name !== options.organization.toLowerCase()) {
throw new Error(
`Organization Name (org_name) claim value mismatch in the ID token; expected "${options.organization}", found "${payload.org_name}"'`
);
Expand Down

0 comments on commit 00ea4fa

Please # to comment.