Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Don't send token with login request #136
What problem does this feature solve?
I currently have Nuxt hooked up to a Rails app with Devise-JWT handling authentication on the backend. It all works well apart from one thing:
When a token expires on the backend, I can't log in again from Nuxt.
The reason is that Nuxt sends the old token along with the login request, and Devise-JWT validates this before checking for the username and password.
What does the proposed changes look like?
I don't think it makes sense to ever send the token along with login requests, because the whole point of a login request is to issue a token. Can Nuxt just skip sending the token when the request is coming from the
An alternative would be to always delete tokens completely from the store before login requests, and this is what I'm doing to work around this right now.