node-js-express-login-example
node-js-express-login-example copied to clipboard
Thank you very much for this project,Im fresh on nodejs
could you please tell me what else do I need to edit in the project,in my develope env signin api return info json ,but does not return a token, much appreciated!
I am also confused on this part as he hasn't sent the jwt token back to the client.
Im confused too can someone help me? In client where do I put the jwt token in axios request to my server?
Its confusing because in the post/signin. Its not sending no token back to the user but instead its sets the token to "req.session.token". But at middleware verifyToken req.session is empty {} so there is no token for me to get. For some reason
Okay so I understand the whole concept now but heres to problem. GET /user/* all of the endpoints work on postman when i request the api there but on my react client it doesnt work. GET /user withCredentials true on axios returns no token provided (403)
And you are setting a Authorization: Bearer .... header?
But POST /auth/signin doesn't send any jwt token it only sets to req.session.token