Changing login method from email/social to One-time password

There are existing users who login with their email or social accounts. How will existing users login if we get rid of social and email login?