Skip to content

Commit 1a6a765

Browse files
committed
[FIX] refresh api jwt 형식 오류 해결
함수명 혼동에 따른 파라미터 값 원인 오류 해결 getAuthenticationByEmail -> getAuthenticationByToken
1 parent fe234bc commit 1a6a765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/example/ai_tutor/global/config/security/token/JwtAuthenticationFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
3030
String jwt = getJwtFromRequest(request);
3131

3232
if (StringUtils.hasText(jwt) && customTokenProviderService.validateToken(jwt)) {
33-
UsernamePasswordAuthenticationToken authentication = customTokenProviderService.getAuthenticationByEmail(jwt);
33+
UsernamePasswordAuthenticationToken authentication = customTokenProviderService.getAuthenticationByToken(jwt);
3434
authentication.setDetails(new WebAuthenticationDetailsSource().buildDetails(request));
3535
SecurityContextHolder.getContext().setAuthentication(authentication);
3636
}

0 commit comments

Comments
 (0)