Skip to content

Commit

Permalink
Fix validateInResponseTo null check (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiees2 committed May 21, 2021
1 parent 683f767 commit bf41764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node-saml/saml.ts
Expand Up @@ -871,7 +871,7 @@ class SAML {
}
} catch (err) {
debug("validatePostResponse resulted in an error: %s", err);
if (this.options.validateInResponseTo != null) {
if (this.options.validateInResponseTo) {
await this.cacheProvider.removeAsync(inResponseTo!);
}
throw err;
Expand Down

0 comments on commit bf41764

Please sign in to comment.