I am trying to implement JWT authentication. /login and /register work fine and they return authentication token, but when I try to GET /secret with a header \'Authorization\' =
opts.jwtFromRequest = ExtractJwt.fromAuthHeaderAsBearerToken();
should be
ExtractJwt.fromAuthHeaderWithScheme('jwt');