You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 11a863b
Browse filesBrowse the repository at this point in the historyBrowse files
fix(http): send Supabase apikey header when anonKey is configured (#6)
Supabase Kong (the gateway in front of /functions/v1/*) rejects every
request that lacks an `apikey` header, even when Authorization carries a
valid Bearer JWT. The SDK previously only emitted Authorization, so any
caller whose baseUrl pointed at a Supabase Edge Function got back a 400
with `{"message":"No API key found in request"}`.
Adds a typed `anonKey` field to ScaffaldConfig and has HttpClient emit
`apikey: <anonKey>` on every request when it's set. Public-endpoint
callers can pass anonKey alone (no Authorization) — useful for
unauthenticated routes like /v1/auth/magic-link.
Co-authored-by: Claude Opus 4.7 <[email protected]>
0 commit comments