Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Service returns [No Auth Token] same by passing Authorization Token on HEADER #641
Steps to reproduce
The Service returns the data that has been requested.
When making the request to some Service that is restricted only to authenticated user (authenticate ('jwt', 'local')), even passing the Authorization Token happens following the error
Tell us about the applicable parts of your setup.
Module versions (especially the part that's not working):
NodeJS version: 7.7.1
Operating System: WIndows 10
Browser Version: Crome 58/Postman
@97-109-107 I upgraded to the latest version of the FeathersJS packages and ran the services again. In this way, this error stopped sending the requests via Postman.
However @daffl , informed me in another issue that the correct thing is to use socket, hence in my application I changed everything to work with socket.
Because I was performing authentication via Rest and making some requests with Socket, that's where my problem occurred in my application.
Ah, if that was the issue then I think we can close this. There usually is no reason to use both, REST and Sockets in the same app (in fact, websockets are almost always the better choice especially if you need real-time updates) but if you do they both have to be authenticated individually.