PRO RSS Feed
In this lesson we will look at all of the pieces that combine together to create a JWT (j AWT) or JSON Web Token. You will use node to create a JWT, and then verify it in the JWT debugger.
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.
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 JWT support to the server. Signing a JSON object as a payload and sending the signed token to the browser on authentication.
Setting up a login on the angular app and an authentication endpoint on the server.
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).
Creating the basic node server to serve up random users via API endpoints.
A basic introduction to the mechanics of JWTs and the application we will be building in this lesson series.