Do you know how what is JavaScript Modules. Don't worry we'll cover everything, just keep reading techbrushup
Authentication = "Who are you?"
When a user logs in, the system verifies their identity.
authentication.js
Email: manoj@gmail.com
Password: Password@123
Server checks:
✔ Email exists?
✔ Password correct?
If yes:
You are Manoj Paul
Then the server issues a JWT token.
Authorization = "What are you allowed to do?"
Authorization (Role-Based Access Control).
Authentication → Who are you?
Authorization → What are you allowed to do?