diff --git a/apps/app/src/utils/auth.ts b/apps/app/src/utils/auth.ts index 558d6cdac..76ff4b8b7 100644 --- a/apps/app/src/utils/auth.ts +++ b/apps/app/src/utils/auth.ts @@ -48,13 +48,7 @@ export const auth = betterAuth({ provider: 'postgresql', }), baseURL: process.env.BETTER_AUTH_URL, - trustedOrigins: [ - // 'http://localhost:3000', - 'https://app.trycomp.ai', - // 'https://app.staging.trycomp.ai', - // 'https://portal.trycomp.ai', - // 'https://portal.staging.trycomp.ai', - ], + trustedOrigins: ['http://localhost:3000', 'https://*.trycomp.ai'], emailAndPassword: { enabled: true, }, diff --git a/apps/portal/src/app/lib/auth.ts b/apps/portal/src/app/lib/auth.ts index 691803324..97c6427f1 100644 --- a/apps/portal/src/app/lib/auth.ts +++ b/apps/portal/src/app/lib/auth.ts @@ -15,13 +15,7 @@ export const auth = betterAuth({ // It's important so we can use custom IDs specified in Prisma Schema. generateId: false, }, - trustedOrigins: [ - // 'http://localhost:3000', - 'https://app.trycomp.ai', - // 'https://app.staging.trycomp.ai', - // 'https://portal.trycomp.ai', - // 'https://portal.staging.trycomp.ai', - ], + trustedOrigins: ['http://localhost:3000', 'https://*.trycomp.ai'], secret: process.env.AUTH_SECRET!, plugins: [ organization({