From 30f787bb0f8a59b12cb068812e018aed20ba4e61 Mon Sep 17 00:00:00 2001 From: Rodrigo Santos Date: Wed, 1 Oct 2025 21:25:11 +0100 Subject: [PATCH 1/3] docs: update triggers documentation link in betterAuth schema --- examples/next/convex/betterAuth/schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/next/convex/betterAuth/schema.ts b/examples/next/convex/betterAuth/schema.ts index 66e1ab5..012a4b8 100644 --- a/examples/next/convex/betterAuth/schema.ts +++ b/examples/next/convex/betterAuth/schema.ts @@ -7,7 +7,7 @@ import { tables } from "./generatedSchema"; // // Or, for tables that aren't supported for schema extension, you can track // Better Auth tables with your own app tables using triggers: -// +// https://convex-better-auth.netlify.app/triggers const schema = defineSchema({ ...tables, // Spread the generated schema and add a custom index From d1b91fc01d0ee6b2cac945fa77dfa64af33b6d52 Mon Sep 17 00:00:00 2001 From: Rodrigo Santos Date: Mon, 6 Oct 2025 02:16:49 +0100 Subject: [PATCH 2/3] refactor(auth): consolidate import statements for emailOTP and magicLink --- examples/next/convex/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/next/convex/auth.ts b/examples/next/convex/auth.ts index e730b8d..e531298 100644 --- a/examples/next/convex/auth.ts +++ b/examples/next/convex/auth.ts @@ -8,15 +8,15 @@ import { genericOAuth, twoFactor, username, + emailOTP, + magicLink } from "better-auth/plugins"; -import { emailOTP } from "better-auth/plugins"; import { sendMagicLink, sendOTPVerification, sendEmailVerification, sendResetPassword, } from "../convex/email"; -import { magicLink } from "better-auth/plugins"; import { betterAuth, BetterAuthOptions } from "better-auth"; import { requireActionCtx } from "@convex-dev/better-auth/utils"; import { DataModel } from "./_generated/dataModel"; From bcb09ffcdb911a10aad7db77fdf6a717f6987f39 Mon Sep 17 00:00:00 2001 From: RodrigoRafaelSantos7 Date: Fri, 7 Nov 2025 23:26:27 +0100 Subject: [PATCH 3/3] Update path matcher logic to exclude anonymous sign-in routes --- src/plugins/convex/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/convex/index.ts b/src/plugins/convex/index.ts index cd59aca..e0257d8 100644 --- a/src/plugins/convex/index.ts +++ b/src/plugins/convex/index.ts @@ -97,7 +97,8 @@ export const convex = ( { matcher: (ctx) => { return ( - ctx.path.startsWith("/sign-in") || + (ctx.path.startsWith("/sign-in") && + !ctx.path.startsWith("/sign-in/anonymous")) || ctx.path.startsWith("/sign-up") || ctx.path.startsWith("/callback") || ctx.path.startsWith("/oauth2/callback") ||