Slimy
Slimy3mo 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 .
5 Replies
erquhart
erquhart3mo 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
SlimyOP3mo 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
erquhart3mo ago
which repo (and which live version lol)
Slimy
SlimyOP3mo ago
GitHub
better-auth/examples/next/lib/auth.ts at 78313ac670b04e9604539cbf3d...
Convex + Better Auth 🔥. Contribute to get-convex/better-auth development by creating an account on GitHub.
erquhart
erquhart3mo ago
I guess I don’t understand the question, that is the source repo for the component, and it also houses the examples. So it’s always up to date as it is the source.

Did you find this page helpful?