convex dodopayments component issue
I’m testing the new https://www.convex.dev/components/dodopayments (DodoPayments integration) with Convex.
My setup:
Next.js + TypeScript
Convex + Clerk
DodoPayments official Convex component docs
Problem:
Inside my convex/dodo.ts, Convex doesn’t recognize ctx.db inside the identify callback.
TypeScript error:
Property 'db' does not exist on type 'GenericActionCtx<any>'I’ve already tried adding:
- import type { MutationCtx } from "./_generated/server"
- explicit (ctx: MutationCtx)
- running npx convex dev again and again
But Convex still doesn’t recognize ctx.db within identify.
Can anyone from the Convex team confirm the correct context type or best practice for using ctx.db inside DodoPayments identify?
thanks in advance.



