feat: improve validations
This commit is contained in:
@@ -9,8 +9,7 @@ const schemaApiKey = z
|
||||
expiresAt: z.date().optional(), // default is 30 days
|
||||
note: z.string().min(1).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
.strict(); // Adding strict so that we can disallow passing in extra fields
|
||||
const withValidApiKey = withValidation({
|
||||
schema: schemaApiKey,
|
||||
type: "Zod",
|
||||
|
||||
Reference in New Issue
Block a user