Closed vbrown608 closed 3 years ago
Background Functions will return a 202 status code and an empty body.
202
Per https://docs.netlify.com/functions/functions-and-identity/#trigger-serverless-functions-on-identity-events
If you return a status other than 200 or 204 from one of these event functions, the signup or login will be blocked.
200
204
We should add 202 (maybe all 200-range statuses?) to the list of status codes we count as success.
We're already supporting 202 here, will work with docs to update the link above. https://github.com/netlify/gotrue/blob/8e05e1e4bb518495f2997b58c06528c8bcc2640c/api/hooks.go#L124
Background Functions will return a
202
status code and an empty body.Per https://docs.netlify.com/functions/functions-and-identity/#trigger-serverless-functions-on-identity-events
We should add
202
(maybe all200
-range statuses?) to the list of status codes we count as success.