diff --git a/packages/better-auth/src/plugins/two-factor/index.ts b/packages/better-auth/src/plugins/two-factor/index.ts index a3bb3fdc08..0f70d0d6dc 100644 --- a/packages/better-auth/src/plugins/two-factor/index.ts +++ b/packages/better-auth/src/plugins/two-factor/index.ts @@ -240,7 +240,8 @@ export const twoFactor = (options?: TwoFactorOptions) => { matcher(context) { return ( context.path === "/sign-in/email" || - context.path === "/sign-in/username" + context.path === "/sign-in/username" || + context.path === "/sign-in/phone-number" ); }, handler: createAuthMiddleware(async (ctx) => {