Skip to content

Commit

Permalink
chore: daily development
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Dec 9, 2024
1 parent 3dc6fc3 commit 13fe14d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
DATABASE_URL=postgress://username:password@localhost:5432/canyon
AUTH_SECRET=s09C2BTdTg+Nb+t2eHpDTlCPXH9zGhsbzH9OjLYu6cU=
3 changes: 2 additions & 1 deletion packages/canyon-platform/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -12,6 +12,7 @@ export const { handlers, auth } = NextAuth({
}),
GitHub,
],
secret: process.env.AUTH_SECRET,
callbacks: {
redirect: async () => {
return "/projects";
Expand Down

0 comments on commit 13fe14d

Please sign in to comment.