feat: adds tests for api keys endpoints

This commit is contained in:
Agusti Fernandez Pardo
2022-03-26 01:40:43 +01:00
parent 9e8be659c5
commit 12a7129e5a
10 changed files with 115 additions and 20 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import { z } from "zod";
const schemaApiKey = z
.object({
expiresAt: z.string().optional(), // default is 30 days
expiresAt: z.date().optional(), // default is 30 days
note: z.string().min(1).optional(),
})
.strict(); // Adding strict so that we can disallow passing in extra fields