diff --git a/src/auth/idToken.js b/src/auth/idToken.js index 4c439b864..fc34c51ca 100644 --- a/src/auth/idToken.js +++ b/src/auth/idToken.js @@ -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}"'` );