Open ThisIsMissEm opened 2 weeks ago
Currently it can return Zod errors for request input validation, per https://github.com/dahlia/hollo/pull/47#discussion_r1813129826
Example response:
{ "error": "Invalid request", "zod_error": { "issues": [ { "expected": "'authorization_code' | 'client_credentials'", "received": "undefined", "code": "invalid_type", "path": [ "grant_type" ], "message": "Required" } ], "name": "ZodError" } }
Doesn't conform to:
interface ErrorResponse { error: string; error_description?: string; error_uri?: string; }
Per https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
So for OAuth endpoints we may not be able to validate via Zod?
We may not be able to utilize zValidator(), but we would be able to manually call Zod in the handler.
zValidator()
Currently it can return Zod errors for request input validation, per https://github.com/dahlia/hollo/pull/47#discussion_r1813129826
Example response:
Doesn't conform to:
Per https://datatracker.ietf.org/doc/html/rfc6749#section-5.2