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\' =
Got it. Made a mistake in the request.
As per the README, it should be 'Authorization' = 'bearer token_received_on_login'
opts.jwtFromRequest = ExtractJwt.fromAuthHeaderAsBearerToken();
should be
ExtractJwt.fromAuthHeaderWithScheme('jwt');