mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-31 11:26:42 -05:00
fix: protect phone number login with 2fa
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user