Features required in Admin Dashboard
Implementation
Implemented authentication using JWT TOKEN
How It Works:
- Login: User sends credentials to the backend.
- Token Issuance: Backend validates credentials and issues a JWT token.
- Storage: Frontend stores the JWT token (e.g., in localStorage or sessionStorage).
- Request Authentication: Frontend includes the JWT token in the Authorization header of each request.
current → http://localhost:4000/api/auth/generate-token
include in the header file key = x-auth-token