auth-backend: switch over to use auto secure cookies

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-01-10 17:35:02 +01:00
parent 416323397a
commit 20ca7cfa5f
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ export async function createRouter(
secret,
saveUninitialized: false,
resave: false,
cookie: { secure: enforceCookieSSL },
cookie: { secure: enforceCookieSSL ? 'auto' : false },
}),
);
router.use(passport.initialize());