From e621135d71c09c1ac63611e3cde6c9bcee60c485 Mon Sep 17 00:00:00 2001 From: GodUser1005 Date: Tue, 18 Feb 2025 16:33:02 +0900 Subject: [PATCH] =?UTF-8?q?[SWEP-104]=20=EC=B9=B4=EC=B9=B4=EC=98=A4=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=BD=9C=EB=B0=B1=20=EC=A3=BC?= =?UTF-8?q?=EC=86=8C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/tsoa.json | 2 +- src/auth.config.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/tsoa.json b/config/tsoa.json index 4128002..6f582c8 100644 --- a/config/tsoa.json +++ b/config/tsoa.json @@ -14,7 +14,7 @@ "description": "Sweepic local server" }, { - "url": "http://3.37.137.212:3000", + "url": "https://sweepic.store", "description": "Sweepic server" } ], diff --git a/src/auth.config.ts b/src/auth.config.ts index c575baf..41a0247 100644 --- a/src/auth.config.ts +++ b/src/auth.config.ts @@ -58,7 +58,7 @@ export const naverStrategy = new NaverStrategy( { clientID: process.env.PASSPORT_NAVER_CLIENT_ID!, clientSecret: process.env.PASSPORT_NAVER_CLIENT_SECRET!, - callbackURL: 'http://3.37.137.212:3000/oauth2/callback/naver', + callbackURL: `https://${process.env.SERVER_DOMAIN}/oauth2/callback/kakao`, }, async (accessToken, refreshToken, profile, cb) => { try { @@ -75,7 +75,7 @@ export const googleStrategy = new GoogleStrategy( { clientID: process.env.PASSPORT_GOOGLE_CLIENT_ID!, clientSecret: process.env.PASSPORT_GOOGLE_CLIENT_SECRET!, - callbackURL: 'http://3.37.137.212:3000/oauth2/callback/google', + callbackURL: `https://${process.env.SERVER_DOMAIN}/oauth2/callback/google`, }, async (accessToken, refreshToken, profile, cb) => { try { @@ -92,7 +92,7 @@ export const kakaoStrategy = new KakaoStrategy( { clientID: process.env.PASSPORT_KAKAO_CLIENT_ID!, clientSecret: process.env.PASSPORT_KAKAO_CLIENT_SECRET!, // Optional in Kakao - callbackURL: 'http://3.37.137.212:3000/oauth2/callback/kakao', + callbackURL: `https://${process.env.SERVER_DOMAIN}/oauth2/callback/kakao`, }, async (accessToken, refreshToken, profile, cb) => { try {