Skip to content

Commit

Permalink
test: test interceptor에 tokenValue, tokenType을 추가한다
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb committed Mar 9, 2024
1 parent 9753ea3 commit f0af419
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public boolean preHandle(HttpServletRequest request, HttpServletResponse respons
String token = request.getHeader("Authorization");
throwIfCannotValidToken(token);
request.setAttribute("logined", expectedId);
request.setAttribute("tokenType", token.split(" ")[0]);
request.setAttribute("tokenValue", token.split(" ")[1]);
}
return true;
}
Expand Down

0 comments on commit f0af419

Please sign in to comment.