Skip to content

Commit

Permalink
Include tsignore for error code.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Mar 21, 2024
1 parent 8ebe74e commit 9b306fa
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 @@ -433,6 +433,8 @@ class SamlLogin {
// * If the source idp encoded ~ as _x007E_ then swap it back, they could be also incorrectly encoding other values, but it doesn't seem like there is a standard on this.
if (subjectInResponseTo != inResponseTo && subjectInResponseTo?.replace(/_x007E_/gi, '~') !== inResponseTo?.replace(/_x007E_/gi, '~')) {
const error = new Error("InResponseTo is not valid");
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore 2339
error.code = 'InvalidAuthenticationRequestId';
throw error;
}
Expand Down

0 comments on commit 9b306fa

Please sign in to comment.