2fa with social issue

Might be a stupid question but i cant seem to figure out. Ofcourse checked the docs but couldn't find a straight-forward answer to this

2fa enable/disable requires a user password, which doesnt exist for social signins, but still seems to expect it and returns an error if incorect.

You could also argue that you dont really want/need 2fa when using a some social signins, so i would like to disable the feature for those. But thats another problem where the default session object doesnt provide any info on if the user is signed in using email or any social. Obviously i could make a horrible way to do this myself manually, butt im checking if there is a "BetterAuth way"

In short:
  • Is enabling 2fa with a social account even possible and how?
  • If its not possible, how do i restrict the access to that feature/ui by checking if an account is social?
Was this page helpful?