We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9ffb19 commit 605443fCopy full SHA for 605443f
2 files changed
src/server/model/auth.ts
@@ -33,6 +33,10 @@ export const authConfig: Omit<AuthConfig, 'raw'> = {
33
debug: env.isProd ? false : true,
34
basePath: '/api/auth',
35
trustHost: true,
36
+ useSecureCookies:
37
+ typeof env.auth.useSecureCookies === 'boolean'
38
+ ? env.auth.useSecureCookies
39
+ : undefined,
40
providers: compact([
41
Credentials({
42
id: 'account',
src/server/utils/env.ts
@@ -28,6 +28,8 @@ export const env = {
28
email: process.env.AUTH_RESTRICT_EMAIL, // for example: @example.com
29
},
30
secret: process.env.AUTH_SECRET || md5(jwtSecret),
31
32
+ checkEnvTrusty(process.env.AUTH_USE_SECURE_COOKIES) || undefined,
/**
* @deprecated use `env.smtp` instead
*/
0 commit comments