My implementation of jwt auth server to use on future projects.
More to come...
##Auth server data flow
Route POST Signup
- client sends POST request to signup route (POST /users)
- The clients data is saved to the database
- The email is saved
- The password is salted, hashed by bcrypt, THEN saved
- A JWT token is generated, then returned to the client for future authorized requests
I am currently unsure if I want to save the JWT token in the database and associate it with the user ???
Route POST Signin