feat: improve api key endpoints, add users endpoint
This commit is contained in:
1 parent
d9c34f67e6
commit
084c91f6c1
11 files changed
+228
-7
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user