From 13fe14db3b3ae8b0163a755bb59dee4dd514fcdb Mon Sep 17 00:00:00 2001 From: zhangtao25 Date: Mon, 9 Dec 2024 19:42:04 +0800 Subject: [PATCH] chore: daily development --- .env.example | 1 - packages/canyon-platform/auth.ts | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) 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";