Skip to content

Commit 346ecc5

Browse files
authored
Merge pull request #224 from Sweepic/refactor/SWEP-104
[SWEP-104] 카카오 로그인 콜백 주소 수정
2 parents 758248e + e7bed37 commit 346ecc5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

config/tsoa.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"description": "Sweepic local server"
1515
},
1616
{
17-
"url": "http://3.37.137.212:3000",
17+
"url": "https://sweepic.store",
1818
"description": "Sweepic server"
1919
}
2020
],

src/auth.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const naverStrategy = new NaverStrategy(
5858
{
5959
clientID: process.env.PASSPORT_NAVER_CLIENT_ID!,
6060
clientSecret: process.env.PASSPORT_NAVER_CLIENT_SECRET!,
61-
callbackURL: 'http://3.37.137.212:3000/oauth2/callback/naver',
61+
callbackURL: `https://${process.env.SERVER_DOMAIN}/oauth2/callback/kakao`,
6262
},
6363
async (accessToken, refreshToken, profile, cb) => {
6464
try {
@@ -75,7 +75,7 @@ export const googleStrategy = new GoogleStrategy(
7575
{
7676
clientID: process.env.PASSPORT_GOOGLE_CLIENT_ID!,
7777
clientSecret: process.env.PASSPORT_GOOGLE_CLIENT_SECRET!,
78-
callbackURL: 'http://3.37.137.212:3000/oauth2/callback/google',
78+
callbackURL: `https://${process.env.SERVER_DOMAIN}/oauth2/callback/google`,
7979
},
8080
async (accessToken, refreshToken, profile, cb) => {
8181
try {
@@ -92,7 +92,7 @@ export const kakaoStrategy = new KakaoStrategy(
9292
{
9393
clientID: process.env.PASSPORT_KAKAO_CLIENT_ID!,
9494
clientSecret: process.env.PASSPORT_KAKAO_CLIENT_SECRET!, // Optional in Kakao
95-
callbackURL: 'http://3.37.137.212:3000/oauth2/callback/kakao',
95+
callbackURL: `https://${process.env.SERVER_DOMAIN}/oauth2/callback/kakao`,
9696
},
9797
async (accessToken, refreshToken, profile, cb) => {
9898
try {

0 commit comments

Comments
 (0)