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 a0b7b57 commit 4f21571
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/canyon-platform/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ import prisma from "@/lib/prisma";
export const { handlers, auth } = NextAuth(() => {
return {
providers: [
GitLab({
// authorization: "https://git.com/oauth/authorize?scope=read_user",
// token: "https://git.com/oauth/token",
// userinfo: "https://git.com/api/v4/user",
}),
process.env.GITLAB_SERVER
? GitLab({
authorization: `${process.env.GITLAB_SERVER}/oauth/authorize?scope=read_user`,
token: `${process.env.GITLAB_SERVER}/oauth/token`,
userinfo: `${process.env.GITLAB_SERVER}/api/v4/user`,
})
: GitLab,
GitHub,
],
// secret: process.env.AUTH_SECRET,
Expand Down

0 comments on commit 4f21571

Please sign in to comment.