Files
worldmonitor/convex/lib
Elie Habib e0fc8bc136 feat(checkout): prefill Dodo checkout with Clerk name and email (#2655)
* feat(checkout): prefill Dodo checkout with Clerk name and email

Reads givenName, familyName, and email from Convex auth identity
(populated by Clerk JWT) and passes them to the Dodo checkout
customer field. Users no longer need to re-enter their details.

Requires npx convex deploy after merge.

* fix(checkout): use resolveUserIdentity helper, fix name:undefined

P2: Added resolveUserIdentity to convex/lib/auth.ts instead of calling
ctx.auth.getUserIdentity() directly (violates convention).

P1: name field now only included when non-empty, preventing
name:undefined from being silently dropped by JSON serialization.
2026-04-03 23:46:43 +04:00
..