before_user_created auth hook not working as documented

I am trying to implement the before_user_created auth hook, but even the example from the docs doesn’t work as advertised. Rather than returning an error with the specified code and message, it returns a 500 with a message of “Invalid payload sent to hook.

Are the docs out of data? Can I find the correct schema for the response payload anywhere?
Was this page helpful?