From 902eee260b6406d35285cd39a2ad958b54be47c0 Mon Sep 17 00:00:00 2001 From: gibbyb Date: Thu, 16 Jan 2025 06:37:22 -0600 Subject: [PATCH] May have fixed authentik idk --- src/auth.ts | 7 ------- src/env.js | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/auth.ts b/src/auth.ts index 5bfa170..2ace80a 100755 --- a/src/auth.ts +++ b/src/auth.ts @@ -15,11 +15,4 @@ export const { handlers, auth, signIn, signOut } = NextAuth({ issuer: process.env.AUTH_AUTHENTIK_ISSUER, }), ], - debug: true, - callbacks: { - async signIn({ user, account, profile, email, credentials }) { - console.log('signIn', { user, account, profile, email, credentials }); - return true; - }, - }, }); diff --git a/src/env.js b/src/env.js index 382ab5d..f032946 100755 --- a/src/env.js +++ b/src/env.js @@ -12,7 +12,7 @@ export const env = createEnv({ .enum(['development', 'test', 'production']) .default('development'), API_KEY: z.string(), - AUTH_TRUST_HOST: z.boolean().default(true), + AUTH_TRUST_HOST: z.coerce.boolean().default(true), AUTH_SECRET: z.string(), AUTH_MICROSOFT_ENTRA_ID_ID: z.string(), AUTH_MICROSOFT_ENTRA_ID_SECRET: z.string(),