feat: improve api key endpoints, add users endpoint

This commit is contained in:
Agusti Fernandez Pardo committed 2022-03-25 23:26:22 +01:00
1 parent d9c34f67e6
commit 084c91f6c1
11 files changed
+228 -7

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ import { z } from "zod";
const schemaApiKey = z
.object({
expiresAt: z.date().optional(), // default is 30 days
expiresAt: z.string().transform((date: string) => new Date(date)).optional(), // default is 30 days
note: z.string().min(1).optional(),
})
.strict(); // Adding strict so that we can disallow passing in extra fields