Node JS mini projects with source code - free download
Project 1: User Management Application - Node JS, Angular 10 and MongoDB
Project 2: User Management Application - Node JS, Vue.js and MongoDB
Project 3: User Management Application - Node JS, React JS and MongoDB
Project 4: Node JS: Authentication and Authorization with JWT in Express.js
What is JSON Web Token?
JSON Web Tokens (JWT) have been introduced as a self-contained way for securely transmitting information between parties as a JSON object.JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact. 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.
When should you use JSON Web Tokens?
- Authorization: Once the user is logged in, each subsequent request will include the JWT, allowing the user to access routes, services, and resources that are permitted with that token.
- Information Exchange: JSON Web Tokens are a good way of securely transmitting information between parties. Because JWTs can be signed—for example, using public/private key pairs.
Here is the diagram of how JWT works: