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 d62a8da commit f47e6c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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=
8 changes: 2 additions & 6 deletions packages/canyon-platform/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -17,7 +13,7 @@ export const { handlers, auth } = NextAuth(async () => {
}),
GitHub,
],
// secret: s,
// secret: process.env.AUTH_SECRET,
callbacks: {
redirect: async () => {
return "/projects";
Expand Down

0 comments on commit f47e6c2

Please sign in to comment.