mirror of
https://github.com/better-auth/better-auth.git
synced 2026-07-22 11:49:20 -05:00
fix(last-login-method): detect passkey login to set last used method (#6154)
Signed-off-by: GautamBytes <manchandanigautam@gmail.com>
This commit is contained in:
@@ -64,6 +64,7 @@ export const lastLoginMethod = <O extends LastLoginMethodOptions>(
|
||||
);
|
||||
}
|
||||
if (ctx.path.includes("siwe")) return "siwe";
|
||||
if (ctx.path.includes("/passkey/verify-authentication")) return "passkey";
|
||||
return null;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user