X-Git-Url: http://git.squeep.com/?p=squeep-authentication-module;a=blobdiff_plain;f=lib%2Fauthenticator.js;h=c69ada91c6ed6a5234942b1e6ae8eb92a420d7e6;hp=4449a94b700889f5c2196b77c91872ed0b52d26d;hb=93fbeab317901033612318b672aff060682df8a6;hpb=70645846baf3aa9ecb7f6f49de143a4282128a73 diff --git a/lib/authenticator.js b/lib/authenticator.js index 4449a94..c69ada9 100644 --- a/lib/authenticator.js +++ b/lib/authenticator.js @@ -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('; '));