Skip to content

fix(functions): stop writing request headers into the caller's options - #521

Open
fresh55 wants to merge 1 commit into
supabase:masterfrom
fresh55:fix/functions-options-headers
Open

fresh55 wants to merge 1 commit into
supabase:masterfrom
fresh55:fix/functions-options-headers

Conversation

@fresh55

@fresh55 fresh55 commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

HandleRequest wrote the request headers into the caller's InvokeFunctionOptions, so a reused options object kept sending the first call's Authorization. With the Supabase client, a refreshed token never reached Functions. Headers are now built per call.

A reused InvokeFunctionOptions kept the first call's Authorization, so
the Supabase client sent an old token after a refresh.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant