au1h
Reference

Headers

Every header au1h reads or writes.

Sent by clients to au1h

HeaderWherePurpose
x-app-id/api/auth/*, /proxy/*The application slug. Selects the tenant
Authorization: Bearer <jwt>/proxy/*Alternative to the session cookie
CookieeverywhereBetter Auth session cookie

Sent by backends to au1h

HeaderWherePurpose
x-app-id/api/apps/*The application slug
x-app-secret/api/apps/*The application secret

Injected by the gateway into forwarded requests

HeaderValue
x-user-idUser id
x-user-emailUser email
x-app-idApplication id
x-app-slugApplication slug
x-au1h-token60-second au1h-signed JWT, aud = slug, sub = user id
x-forwarded-hostThe host the client used
x-forwarded-protoThe scheme the client used
x-forwarded-forClient address

Any x-user-* or x-app-* header supplied by the client is stripped before forwarding.

Response headers

HeaderWhere
X-RateLimit-Limit, X-RateLimit-Remaining, Retry-AfterRate-limited routes
set-auth-jwt/api/auth/get-session (Better Auth)

On this page