Skip to content

Commit fa9a58b

Browse files
committed
refactor: redirectUrl 수정
1 parent 340efd3 commit fa9a58b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

backend/src/main/java/com/backend/global/util/AuthResponseUtil.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.io.IOException;
44

5+
import org.springframework.beans.factory.annotation.Value;
56
import org.springframework.http.ResponseCookie;
67

78
import com.backend.global.dto.response.GenericResponse;
@@ -11,6 +12,9 @@
1112

1213
public class AuthResponseUtil {
1314

15+
@Value("${auth.redirect.url}")
16+
private static String redirectUrl;
17+
1418
/**
1519
* 로그인 성공 시: accessToken은 ResponseCookie로 내려주고 JSON 응답
1620
*/
@@ -22,7 +26,7 @@ public static void success(HttpServletResponse response,
2226

2327
response.addHeader("Set-Cookie", accessTokenCookie.toString());
2428
writeJsonResponse(response, status, rsData, om);
25-
response.sendRedirect("https://mikki.kr/");
29+
response.sendRedirect(redirectUrl);
2630
}
2731

2832
/**

0 commit comments

Comments
 (0)