Skip to content

Commit

Permalink
fix: (#25) bearerToken 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
khcho0125 committed Sep 6, 2022
1 parent 1861149 commit 746f690
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class JwtFilter(
private fun resolvedToken(request: HttpServletRequest): String? {
val bearerToken = request.getHeader(JwtComponent.HEADER)

if(bearerToken.isNotEmpty().and(bearerToken.startsWith(JwtComponent.PREFIX))) {
if(bearerToken != null && (bearerToken.startsWith(JwtComponent.PREFIX))) {
return bearerToken.substring(7)
}

Expand Down

0 comments on commit 746f690

Please sign in to comment.