You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#2405d0c79 Thanks @zbeyens! - Move createSchema to separate entry point (better-auth-convex/schema) to fix Convex bundler error with Node.js path module
df53a30: Add support for custom mutation builders in createClient and createApi. Both functions now accept an optional internalMutation parameter, allowing you to wrap internal mutations with custom context (e.g., triggers, aggregates, middleware).
Usage:
constinternalMutation=customMutation(internalMutationGeneric,customCtx(async(ctx)=>({db: triggers.wrapDB(ctx).db,})));// Pass to createClientcreateClient({
authFunctions,
schema,
internalMutation,
triggers,});// Pass to createApicreateApi(schema,{
...auth.options,
internalMutation,});