PRO RSS Feed
A basic introduction to the mechanics of JWTs and the application we will be building in this lesson series.
Creating the basic node server to serve up random users via API endpoints.
Creating a basic Angular application to access the random users resource. Also setting up CORS on the node server to enable the resource sharing across different domains (ports in our case).
Setting up a login on the angular app and an authentication endpoint on the server.
Adding JWT support to the server. Signing a JSON object as a payload and sending the signed token to the browser on authentication.
Adding JWT support to the client. Storing the token in local storage, then creating a http interceptor to add the token to requests made to the server. Also implementing logout.
Adding middleware to the node server to decode and verify the token sent from the client. And tidying up the rest of the application. Finally, a walkthrough of the whole process.