Slimy
Slimy6d ago

I'm working on integrating Resend into

I'm working on integrating Resend into Better Auth Component to send verification mail, reset, etc. But when creating the options for Better Auth, I end up with a GenericCtx and because Resend needs an GenericMutationCtx I can't pass it to it .
3 Replies
erquhart
erquhart6d ago
Ah there's a utility for this one sec The examples all use the Resend component, and use the requireMutationCtx helper: https://github.com/get-convex/better-auth/blob/78313ac670b04e9604539cbf3da44ef1c1f2ce75/examples/next/lib/auth.ts#L37
Slimy
SlimyOP6d ago
Interesting Convex as so many little neat thing like this @erquhart Do you know how up-to-date the repo is compared to the live version ?
erquhart
erquhart6d ago
which repo (and which live version lol)

Did you find this page helpful?