feat[convex]: api key auth support

This commit is contained in:
2025-10-20 00:17:41 +00:00
parent a4544a3f09
commit d0893e13be
7 changed files with 80 additions and 6 deletions

View File

@@ -40,6 +40,13 @@ const schema = defineSchema({
"name",
"deletedAt",
]),
apiKeys: defineTable({
publicId: v.string(),
hashedKey: v.string(),
createdAt: v.number(),
updatedAt: v.number(),
expiresAt: v.optional(v.number()),
}).index("byPublicId", ["publicId"]),
})
export default schema