I dont know how is this auth process works with jwt.
I have nodebb in forum.example.com and nodejs app in example.com. And reverse proxy with nginx. I have few question:
-When user logins or signs up which route we should POST method to?
-Do I need to install npm install jsonwebtoken?
-Is this JWT Secret key obtained from jwt.io website?
-How can I save a cookie to user browser?
-When I achieve all this and users logins with nodebb credentials how can i access to current logged in user info?
-Do I need to include the user's passwords to Json web token?
-Do I need to set secret in nodebb admin panel?
Edit:So I did some googling and what I understand I need to post the user info to some expressjs route on my app and generate the Json web token in backend and use some cookie plugin for nodejs. But my last two question is remain unclear for me.