Provision Account
Creates everything a newly verified person needs: the account, their membership, the sample MCP, then a Polar customer and the billing row carrying its id — the customer before the row, so a billing row is never written without one.
An invitation short-circuits all of it: an address somebody already invited joins that account instead, with the role it was given.
Called by the dashboard the moment a magic link produces a session, which is the only moment a verified user exists and has not yet been settled. Supabase has no “email verified” hook, and this is the closest honest thing to one: nothing can reach it without a verified session.
Idempotent. Somebody who already has an account gets their context back unchanged, so a second link, a refresh or a stale tab costs one query.
Response
OK
The response is of type unknown.