Skip to content

Commit

Permalink
remove extra code
Browse files Browse the repository at this point in the history
  • Loading branch information
lor6 committed Apr 1, 2017
1 parent 6be43ce commit 0e35011
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,10 @@ public List<String> getTokens() {

@RequestMapping(method = RequestMethod.POST, value = "/tokens/revokeRefreshToken/{tokenId:.*}")
@ResponseBody
public String revokeRefreshToken(@PathVariable String tokenId, HttpServletRequest request) {
public String revokeRefreshToken(@PathVariable String tokenId) {
if (tokenStore instanceof JdbcTokenStore) {
((JdbcTokenStore) tokenStore).removeRefreshToken(tokenId);
}
Cookie cookie = new Cookie("refreshToken","");
cookie.setMaxAge(0);
return tokenId;
}

Expand Down

0 comments on commit 0e35011

Please sign in to comment.