Skip to content

Conversation

@JEETDESAI25
Copy link

HTTP hooks returning 4xx status codes now parse the response body and return custom error messages instead of hardcoded ones like "Invalid payload sent to hook".

This aligns HTTP hook error handling with the PostgreSQL hook dispatcher which already extracts custom errors via hookserrors.Check().

Fixes #2235.

Parse non-2xx hook responses and bubble up the hook-provided
http_code/message so before_user_created rejections return the custom
error instead of “Invalid payload sent to hook” .Fixes supabase#2235.
@JEETDESAI25 JEETDESAI25 requested a review from a team as a code owner December 10, 2025 02:35
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.

before_user_created Auth Hook Returns "Invalid payload sent to hook" Error When Rejecting User Creation

1 participant