Creating a full-stack MERN app using JWT authentication

Click for: original source

Praveen Kumar wrote this piece about authentication using JSON Web Token (JWT). The author demonstrates how he went about building a React frontend that talks to a .NET Core API Server. The authentication mechanism has been built on JWT on the .NET side of the project.

He implemented the JWT authentication on the frontend using React. You will also get:

  • What is JWT?
  • JWT flow
  • Creating an Express.js server
  • Generating JWT on the server
  • Choosing the right library!
  • Implementing the encoding function
  • Decoding and validating JWT

.. and more. It also deals with LogRocket – a frontend logging tool that lets you replay problems as if they happened in your own browser.

In addition to logging Redux actions and state, LogRocket records console logs, JavaScript errors, stacktraces, network requests/responses with headers + bodies, browser metadata, and custom logs. Nice one!

[Read More]

Tags nodejs javascript software web-development