two factor with social

Hey I see in the documentation that enabling two factor requires a password
const { data } = await authClient.twoFactor.enable({
password: "password", // user password required
issuer: "my-app-name", // Optional, defaults to the app name
});
const { data } = await authClient.twoFactor.enable({
password: "password", // user password required
issuer: "my-app-name", // Optional, defaults to the app name
});
what happens when I am using social login
1 Reply
Lmvdzande
LmvdzandeOP4d ago
and if it is indeed only allowed for email/password based users, how do I check if the user that is loggedin is a email/password user and not a google social login

Did you find this page helpful?