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 20e5331d..d6d1bec5 100644 --- a/packages/canyon-platform/auth.ts +++ b/packages/canyon-platform/auth.ts @@ -2,7 +2,7 @@ import NextAuth from "next-auth"; import GitLab from "next-auth/providers/gitlab"; import GitHub from "next-auth/providers/github"; import prisma from "@/lib/prisma"; - +console.log(process.env.AUTH_SECRET, "process.env.AUTH_SECRET"); export const { handlers, auth } = NextAuth({ providers: [ GitLab({ @@ -12,6 +12,7 @@ export const { handlers, auth } = NextAuth({ }), GitHub, ], + secret: process.env.AUTH_SECRET, callbacks: { redirect: async () => { return "/projects";