Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thank you very much for this project,Im fresh on nodejs #2

Open
est7 opened this issue Jan 18, 2023 · 7 comments
Open

Thank you very much for this project,Im fresh on nodejs #2

est7 opened this issue Jan 18, 2023 · 7 comments

Comments

@est7
Copy link

est7 commented Jan 18, 2023

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!

@shrey1605
Copy link

I am also confused on this part as he hasn't sent the jwt token back to the client.

@notbeer
Copy link

notbeer commented May 30, 2024

Im confused too can someone help me? In client where do I put the jwt token in axios request to my server?

@trasherdk
Copy link

Read the docs

@notbeer
Copy link

notbeer commented May 31, 2024

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

@notbeer
Copy link

notbeer commented Jun 1, 2024

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)

@trasherdk
Copy link

And you are setting a Authorization: Bearer .... header?

@notbeer
Copy link

notbeer commented Jun 1, 2024

But POST /auth/signin doesn't send any jwt token it only sets to req.session.token

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants