Have a question?
Message sent Close
4.86 out of 5
4.86
7 reviews on Udemy

JWT Authentication using MERN Stack

Learn how to use JSON Web Token to secure REST applications, manage authentication.
Instructor:
Abhishek Potula
34 students enrolled
English [Auto]
What is JWT ? (JSON Web Token)
How to make your application more secure
Encrypting password with hashing and verification
Manage User security roles with tokens

JWT Authentication MERN Stack:

What is JSON Web Token?

JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be verified and trusted because it is digitally signed. JWTs can be signed using a secret (with the HMAC algorithm) or a public/private key pair using RSA or ECDSA.

JSON Web Token (JWT, pronounced /dʒɒt/, same as the word “jot”[1]) is a proposed Internet standard for creating data with optional signature and/or optional encryption whose payload holds JSON that asserts some number of claims. The tokens are signed either using a private secret or a public/private key.

JWTs consist of three parts separated by dots (.), which are:

  • Header
  • Payload
  • Signature

JWT Authentication MERN Stack

  • Compact: Because of its size, it can be sent through an URL, POST parameter, or inside an HTTP header. Additionally, due to its size its transmission is fast.
  • Self-contained: The payload contains all the required information about the user, to avoid querying the database more than once.

In authentication, when the user successfully logs in using their credentials, a JSON Web Token will be returned. Since tokens are credentials, great care must be taken to prevent security issues. In general, you should not keep tokens longer than required.

Compare Prices from Udemy

Similar Courses 

You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.9
4.9 out of 5
7 Ratings

Detailed Rating

Stars 5
6
Stars 4
1
Stars 3
0
Stars 2
0
Stars 1
0
6a932d1160a79582b16d1309432c758f

Includes

7 hours on-demand video
3 articles
1 lectures
Certificate of Completion
Newsletter
Please wait...