Skip to content

Commit

Permalink
Merge pull request #125 from 22caps/dev
Browse files Browse the repository at this point in the history
머지
  • Loading branch information
GiHoo authored Nov 12, 2024
2 parents 32f044f + cd99b7a commit 600ad68
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
public class JwtAuthenticationFilter extends GenericFilterBean {

private static final String AUTHORIZATION_HEADER = "Authorization";
private static final String TOKEN_PREFIX = "Bearer";
private static final String TOKEN_PREFIX = "Bearer ";
private final JwtProvider jwtProvider;

@Override
Expand All @@ -36,7 +36,7 @@ private String resolveToken(HttpServletRequest request) {
String bearerToken = request.getHeader(AUTHORIZATION_HEADER);

if (StringUtils.hasText(bearerToken) && bearerToken.startsWith(TOKEN_PREFIX)) {
return bearerToken.substring(7);
return bearerToken.substring(TOKEN_PREFIX.length());
}

return null;
Expand Down

0 comments on commit 600ad68

Please sign in to comment.