Skip to main content
Every request to the Gatelit gateway must include an Authorization header. The gateway reads the scheme prefix to determine how to verify the token.

Auth modes

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 same Authorization header with a different prefix: