-
Notifications
You must be signed in to change notification settings - Fork 213
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
Usage example? #60
Comments
+1 Do you recommend using another library to generate the token such as node-jsonwebtoken. Would you use passport-local to do the initial authentication with the user email and password? |
An example of how to use this library would be much appreciated. I too would like to use a simple passport-local signup/login system and add a jwt api to my site, but I am confused as to how to wire everything together. |
This tutorial is a good place to start. I don't know the author but glancing through the code example it seems to cover all of the basics. |
Hi,
I have been looking at JWT in my app. I like the look of passport and your library but I think I may be missing some concepts such as how to generate the JWT and how exactly the jwt_payload is populated.
I think what would be super helpful for me and perhaps others would be an end-to-end example from username / password login to getting the token then using that to get some protected api data.
Do you think this would be possible?
Cheers
Mike
The text was updated successfully, but these errors were encountered: