Skip to content

Commit

Permalink
fix(*): move jwt to fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
goldentrash committed Jan 12, 2025
1 parent 1748555 commit cf5099f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ public void onAuthenticationSuccess(
.orElseThrow(() -> UserNotFoundException.of(MemberErrorCode.USER_NOT_FOUND));
String token = jwtTokenProvider.createToken(member);

response.addHeader("Authorization", "Bearer " + token);
response.setContentType(MediaType.APPLICATION_JSON_VALUE);
response.setCharacterEncoding(StandardCharsets.UTF_8.name());
response.sendRedirect(SPA_ADMIN_LOGIN_REDIRECT_URL);
response.sendRedirect(SPA_ADMIN_LOGIN_REDIRECT_URL + "#" + token);
}
}

0 comments on commit cf5099f

Please sign in to comment.