Files
drive/packages/convex/apikey.ts

15 lines
426 B
TypeScript
Raw Permalink Normal View History

2025-10-20 00:17:41 +00:00
import { verifyApiKey as _verifyApiKey, parseApiKey } from "@drexa/auth"
import { WebCryptoSha256Hasher } from "@drexa/auth/hasher"
import { v } from "convex/values"
import { query } from "./_generated/server"
import * as ApiKey from "./model/apikey"
export const verifyApiKey = query({
args: {
unhashedKey: v.string(),
},
handler: async (ctx, args) => {
return await ApiKey.verifyApiKey(ctx, args.unhashedKey)
},
})