Skip to content

fix(gotrue): stop copying the user token into the apikey header - #425

Merged
Tr00d merged 1 commit into
supabase:masterfrom
fresh55:fix/gotrue-apikey-fallback
Sep 14, 2026
Merged

Tr00d merged 1 commit into
supabase:masterfrom
fresh55:fix/gotrue-apikey-fallback

Conversation

@fresh55

@fresh55 fresh55 commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Closes #424.

The fallback added in #401 now only copies non-JWT credentials into apikey. Opaque sb_ keys keep the fallback; user tokens and legacy service-role JWTs don't.

Configured project keys are preserved. When none is configured, Api has no project key to fall back to, so JWTs only set Authorization, matching that part of the JS behavior.

@Tr00d
Tr00d merged commit 854920d into supabase:master Sep 14, 2026
2 checks passed
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.

bug(gotrue): apikey falls back to the user token on GetUser

2 participants