Skip to content

Commit

Permalink
Merge pull request #45 from onetime-with-members/feature/#36/return-name
Browse files Browse the repository at this point in the history
[feat] : 온보딩 시 소셜 계정 이름을 확인할 수 있다
  • Loading branch information
bbbang105 authored Sep 29, 2024
2 parents 0ff1f23 + ee430f2 commit 9c916ff
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import side.onetime.util.JwtUtil;

import java.io.IOException;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.Map;

@Slf4j
Expand Down Expand Up @@ -93,7 +95,7 @@ private void handleAuthentication(HttpServletRequest request, HttpServletRespons
private void handleNewUser(HttpServletRequest request, HttpServletResponse response, String provider, String providerId, String name) throws IOException {
log.info("신규 유저입니다.");
String registerToken = jwtUtil.generateRegisterToken(provider, providerId, name, ACCESS_TOKEN_EXPIRATION_TIME);
String redirectUri = String.format(REGISTER_TOKEN_REDIRECT_URI, registerToken);
String redirectUri = String.format(REGISTER_TOKEN_REDIRECT_URI, registerToken, URLEncoder.encode(name, StandardCharsets.UTF_8));
getRedirectStrategy().sendRedirect(request, response, redirectUri);
}

Expand Down

0 comments on commit 9c916ff

Please sign in to comment.