Skip to content

Commit d76de09

Browse files
authored
fix(*): move jwt to fragment (#67)
1 parent 1748555 commit d76de09

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/gdsc/konkuk/platformcore/application/auth/CustomAuthenticationSuccessHandler.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ public void onAuthenticationSuccess(
3434
.orElseThrow(() -> UserNotFoundException.of(MemberErrorCode.USER_NOT_FOUND));
3535
String token = jwtTokenProvider.createToken(member);
3636

37-
response.addHeader("Authorization", "Bearer " + token);
3837
response.setContentType(MediaType.APPLICATION_JSON_VALUE);
3938
response.setCharacterEncoding(StandardCharsets.UTF_8.name());
40-
response.sendRedirect(SPA_ADMIN_LOGIN_REDIRECT_URL);
39+
response.sendRedirect(SPA_ADMIN_LOGIN_REDIRECT_URL + "#" + token);
4140
}
4241
}

0 commit comments

Comments
 (0)