when i try to get data from feathers api by feathers client i get 401 error #2897
Unanswered
mohdevloop
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i try to build realtime app with reactjs and feathersjs after i make authenticate between api and client authentication operation succeeded and get out the token
i tried to access service to get some data but the error get out 401 not authenticated
i do search about this problem but i do not find any thing but i tried to see anther method to access this data and make sure that
token is valid i used the insomnia to connect with the api and put token in header request and the data is get out in this time i looked for request from server i get a strange thing when i used insomnia for connect i see in context.header i see token is sent but when tried to access by
use feathers client i do not see any header and token i tried to added to socket token header that see in some example but this header do not reach to server too
i will share the feathers client config
and the request by it
and when try to clear the authenticate('jwt') from server the request is pass and get data in both way.
i hope help me in this issue and thanks.
Beta Was this translation helpful? Give feedback.
All reactions