Skip to content

Commit

Permalink
Exclude code property on error issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Apr 27, 2024
1 parent 768f78d commit 106f0c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/saml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ class SamlLogin {
const issuer = issuerResult?.Issuer?._ || issuerResult?.Issuer?.[0]?._;
if (options.expectedProviderIssuer && issuer && issuer !== options.expectedProviderIssuer) {
const error = new Error("Unknown SAML issuer. Expected: " + options.expectedProviderIssuer + " Received: " + issuer);
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore 2339
error.code = 'InvalidIssuer';
throw error
}
Expand Down

0 comments on commit 106f0c2

Please sign in to comment.