Skip to content

Commit 0b4cc5e

Browse files
committed
🐛 fix: OAuth 인증 후 리다이렉트 경로 수정
1 parent 437af48 commit 0b4cc5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/src/main/java/io/f1/backend/domain/user/app/handler/OAuthSuccessHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ public void onAuthenticationSuccess(
2525
response.setContentType("application/json;charset=UTF-8");
2626

2727
if (principal.getUserNickname() == null) {
28-
response.sendRedirect("/signup");
28+
getRedirectStrategy().sendRedirect(request, response, "/signup");
2929
} else {
30-
response.sendRedirect("/room");
30+
getRedirectStrategy().sendRedirect(request, response, "/room");
3131
}
3232
}
3333
}

0 commit comments

Comments
 (0)