From c5c9c294eb393f9aeefb8321395b71bb0c5d1449 Mon Sep 17 00:00:00 2001 From: 10tentacion Date: Sat, 2 Aug 2025 13:46:36 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20url?= =?UTF-8?q?=EC=97=90=20=EC=BF=BC=EB=A6=AC=EC=8A=A4=ED=8A=B8=EB=A7=81=20?= =?UTF-8?q?=EB=B6=84=EA=B8=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/pages/LoginPage/LoginPage.tsx | 4 ++-- src/app/shared/config/auth.ts | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/app/pages/LoginPage/LoginPage.tsx b/src/app/pages/LoginPage/LoginPage.tsx index 4b5d9683..439dfe78 100644 --- a/src/app/pages/LoginPage/LoginPage.tsx +++ b/src/app/pages/LoginPage/LoginPage.tsx @@ -70,9 +70,9 @@ const LoginPage = () => { setIsExiting(true); setTimeout(() => { if (window.electron) { - window.open(authConfig.authUrl, '_blank'); + window.open(authConfig.authUrl.electron, '_blank'); } else { - window.location.href = authConfig.authUrl; + window.location.href = authConfig.authUrl.react; } }, 700); }; diff --git a/src/app/shared/config/auth.ts b/src/app/shared/config/auth.ts index c82709b0..ce40571f 100644 --- a/src/app/shared/config/auth.ts +++ b/src/app/shared/config/auth.ts @@ -5,7 +5,10 @@ import { ROUTES_CONFIG } from '@/router/routesConfig'; import { getAccessToken, getIsOnboardingCompleted } from '../utils/auth'; export const authConfig = { - authUrl: import.meta.env.VITE_MORIB_AUTH_URL, + authUrl: { + react: `${import.meta.env.VITE_MORIB_AUTH_URL}?type=web`, + electron: `${import.meta.env.VITE_MORIB_AUTH_URL}?type=electron`, + }, isAuthenticated: () => { const accessToken = getAccessToken();