Authorization header. The gateway reads the scheme prefix to determine how to verify the token.
Auth modes
- GatelitSigned
- Bearer (OIDC)
- GatelitKey
Your backend signs a short-lived token (60-second TTL by default) for a specific user and returns it to your frontend. The frontend includes it in every request.Best for: Frontend or mobile apps where end users interact with LLMs directly.The token is an HMAC-SHA256 signed JWT issued by your server using the
signToken() helper from @gatelit/sdk. No database lookup is required at the gateway — the signature is verified cryptographically.Full guide →Comparison
Authorization header format
All three schemes use the sameAuthorization header with a different prefix: