diff --git a/.env.example b/.env.example index 00816f00..08d41ed7 100755 --- a/.env.example +++ b/.env.example @@ -1,2 +1 @@ DATABASE_URL=postgress://username:password@localhost:5432/canyon -AUTH_SECRET=s09C2BTdTg+Nb+t2eHpDTlCPXH9zGhsbzH9OjLYu6cU= diff --git a/packages/canyon-platform/auth.ts b/packages/canyon-platform/auth.ts index 5f30d50b..c03556ec 100644 --- a/packages/canyon-platform/auth.ts +++ b/packages/canyon-platform/auth.ts @@ -3,11 +3,7 @@ import GitLab from "next-auth/providers/gitlab"; import GitHub from "next-auth/providers/github"; import prisma from "@/lib/prisma"; -export const { handlers, auth } = NextAuth(async () => { - const s = await prisma.sysSetting.findMany({ - where: {}, - }); - console.log(JSON.stringify(s)); +export const { handlers, auth } = NextAuth(() => { return { providers: [ GitLab({ @@ -17,7 +13,7 @@ export const { handlers, auth } = NextAuth(async () => { }), GitHub, ], - // secret: s, + // secret: process.env.AUTH_SECRET, callbacks: { redirect: async () => { return "/projects";