nextlove
nextlove copied to clipboard
An NPM module that has best practices and essential modules for building APIs with NextJS
Many routes in our openapi spec do not have `api_key` set in the `security` property. Those routes use the `key_or_session_or_token` auth property. See @razor-x 's comments in this PR: https://github.com/seamapi/seam-connect/pull/5809
api_key is not available as an auth option for many endpoints
We should look into how Nextlove is validating arrays. There seems to be a validation process in place that works well for `POST`, but not for `GET`. _Originally posted by...
The result is undefined if you don't pass an schema
CC @kainpets
We currently can't do `z.object({ ... }).optional()` with nextlove's formData, it will always fail to parse, so instead we do a hack where we do `z.union([z.any(), z.object({ ... })])`, let's...
As an alternative to this PR: https://github.com/seamapi/nextlove/pull/115
Requires support in nextjs server modules