test coverage for allowed insecure cookies
[squeep-authentication-module] / lib / authenticator.js
index 4449a94b700889f5c2196b77c91872ed0b52d26d..c69ada91c6ed6a5234942b1e6ae8eb92a420d7e6 100644 (file)
@@ -274,7 +274,7 @@ class Authenticator {
         'SameSite=Lax',
         `Path=${this.options.dingus.proxyPrefix}/`,
       ];
-      if (this.options.authenticator.secureAuthOnly) {
+      if (this.secureAuthOnly) {
         cookieParts.push('Secure');
       }
       res.setHeader(Enum.Header.SetCookie, cookieParts.join('; '));