JSON Web Tokens
JWT is the standard for stateless authentication in microservices.
- Login: Validate credentials, return a signed token.
- Middleware: Check the
Authorization: Bearer <token>header on every request.
Use the golang-jwt/jwt library for signing and parsing tokens securely.