Skip to content

Commit

Permalink
🚑 Access Token 쿠키가 없을 때 오류 발생 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
RetepMil committed Oct 1, 2023
1 parent 73cbbca commit 88b46f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ class JwtAuthenticationFilter(
val bearerToken = request.getHeader("Authorization")
return if (StringUtils.hasText(bearerToken) && bearerToken.startsWith("Bearer")) {
bearerToken.substring(7)
} else request.cookies.find { it.name == "x-access-token" }?.value
} else request.cookies?.find { it.name == "x-access-token" }?.value
}
}

0 comments on commit 88b46f1

Please sign in to comment.