From 5b7b5efd265624cb092009f95a457c672d4401d8 Mon Sep 17 00:00:00 2001 From: zhangtao25 Date: Tue, 10 Dec 2024 10:58:44 +0800 Subject: [PATCH] chore: daily development --- packages/canyon-platform/auth.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/canyon-platform/auth.ts b/packages/canyon-platform/auth.ts index f25dbfc2..0db47b9e 100644 --- a/packages/canyon-platform/auth.ts +++ b/packages/canyon-platform/auth.ts @@ -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,