I have made sure to follow. I'm using the gem jwt_sessions in my rails api and have followed the docs to the tee as far as setup. This log comes from a push request.
JWTDecodeError (Nil JSON web token) · Issue 1 · XeroAPI/xerooauth2
No matter what request comes from my frontend (vuejs), i always get jwtsessions::errors::unauthorized (nil json web token):
Nil json web token jwt.rb:120:in `decode' raise(jwt::decodeerror, 'nil json web token') unless jwt gitlab/workhorse.rb:182:in `decode_jwt' jwt.decode(.
Jwt::decodeerror (nil json web token): Jwtsessions::errors::unauthorized in api::v1 nil json web token obviously a token isn't being generated but not sure how to create one from just checking controllers in. Anything else i do is fine, i even tried making a new token and a new ssh key on my device but all in vain. And this is my javascript that is being used to authenticate the login and that if it's a success it will redirect on the home/privacy view.
If you are passing in a token to your jwt.verify function like so bearer *****., ensure to split the token first before passing it in to jwt by doing. To fix this issue we will need to enable the jwt middleware by adding: Jwt::decodeerror (nil json web token): In this article, we will discuss how to resolve the 401 unauthorized error when implementing jwt (json web token) authentication in asp.net core web api.

I should also mention that i recently switched.


