You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.
If an invalid feathers-jwt token exists in the localStorage of a browser and app.authenticate() is called, the Promise on the client side always resolves, whether or not the token was valid on the server.
I'm assuming that this is because an error isn't thrown on the server side when authentication fails via the JWT authentication strategy.
This has obvious implications on the client side, because now error handling has to be done via .then as opposed to .catch.
Again, the Promise always ends up resolving whether or not the JWT token that is passed to the server is valid.
The text was updated successfully, but these errors were encountered:
After speaking with Marshall in the Slack and doing some more thorough debugging, it looks like this actually isn't a problem of feathers; it's a problem specific to my project.
I'd like to apologize for any confusion this may have caused.
If an invalid
feathers-jwt
token exists in thelocalStorage
of a browser andapp.authenticate()
is called, thePromise
on the client side always resolves, whether or not the token was valid on the server.I'm assuming that this is because an error isn't thrown on the server side when authentication fails via the JWT authentication strategy.
This has obvious implications on the client side, because now error handling has to be done via
.then
as opposed to.catch
.Again, the Promise always ends up resolving whether or not the JWT token that is passed to the server is valid.
The text was updated successfully, but these errors were encountered: