File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
src/main/java/com/github/toastshaman/dropwizard/auth/jwt Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -90,13 +90,7 @@ private JwtContext verifyToken(String rawToken) throws InvalidJwtException {
9090
9191 private Optional <String > getTokenFromCookieOrHeader (ContainerRequestContext requestContext ) {
9292 final Optional <String > headerToken = getTokenFromHeader (requestContext .getHeaders ());
93-
94- if (headerToken .isPresent ()) {
95- return headerToken ;
96- }
97-
98- final Optional <String > cookieToken = getTokenFromCookie (requestContext );
99- return cookieToken .isPresent () ? cookieToken : Optional .empty ();
93+ return headerToken .isPresent () ? headerToken : getTokenFromCookie (requestContext );
10094 }
10195
10296 private Optional <String > getTokenFromHeader (MultivaluedMap <String , String > headers ) {
You can’t perform that action at this time.
0 commit comments