Build restful API authentication using JSON web tokens (JWT)
Sep 6, 2018 · 1 min read
The workflow
We will Have unprotected and protected routes.
A user will authenticate by passing in a name and a password and get back a token.
The user will store this token on their client-side and send it for every request.
We will validate this token, and if all is good, pass back information in JSON format.
To see the code checkout: https://github.com/harshalchandile/build-rest-api-with-token-authentication