🔑JWT & Auth
OAuth2 Bearer Header
Standard Authorization header format for sending tokens.
Explanation
The Bearer scheme is the standard way to transmit a JWT in the header of an HTTP request.
Examples
Header Example
Output
Authorization: Bearer <your_token_here>
Code Examples
HTTP Header
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...💡 Tips
- Always use HTTPS when sending tokens in headers
- The word "Bearer" must be followed by a single space
- Tokens are often filtered out by server logs for security
⚠️ Common Pitfalls
- Don't send tokens in query parameters if possible (they leak in logs)