Skip to content

Commit bf41764

Browse files
authored
Fix validateInResponseTo null check (#596)
1 parent 683f767 commit bf41764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node-saml/saml.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ class SAML {
871871
}
872872
} catch (err) {
873873
debug("validatePostResponse resulted in an error: %s", err);
874-
if (this.options.validateInResponseTo != null) {
874+
if (this.options.validateInResponseTo) {
875875
await this.cacheProvider.removeAsync(inResponseTo!);
876876
}
877877
throw err;

0 commit comments

Comments
 (0)