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
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#L37Interesting
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 ?
which repo
(and which live version lol)
https://github.com/get-convex/better-auth/blob/78313ac670b04e9604539cbf3da44ef1c1f2ce75/examples/next/lib/auth.ts#L37 This one with convex version 1.25.2 and the better auth compoenent 0.7.17
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.
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.