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 10, 2024
1 parent 4601e80 commit 5b7b5ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/canyon-platform/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import prisma from "@/lib/prisma";
export const { handlers, auth } = NextAuth({
trustHost: true,
providers: [
process.env.GITLAB_SERVER
process.env.AUTH_GITLAB_ORIGIN
? 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`,
authorization: `${process.env.AUTH_GITLAB_ORIGIN}/oauth/authorize?scope=read_user`,
token: `${process.env.AUTH_GITLAB_ORIGIN}/oauth/token`,
userinfo: `${process.env.AUTH_GITLAB_ORIGIN}/api/v4/user`,
})
: GitLab,
GitHub,
Expand Down

0 comments on commit 5b7b5ef

Please sign in to comment.