
Hi ! Hope you are having a great day !
Is there a way to know if a user registered via email or any other oauth providers ?
The problem:
If the user registered first with google and try to connect using email and password he only get a wrong password error. I would like to inform the user that he need to use google login.
Is there a way to create a similar function like the firebase one (fetchSignInMethodsForEmail) ?

Even when the user is signed up using Google that user can still use the email login option. Meaning if you have
- Email login
- Google login
- Facebook login Any matched email will use to access the same account.
As of now there's no way to know how the account was opened/created. The best workaround would be to display some message like:
Email & password are incorrect, try to reset your password or login with Google

I understand Thanks for your fast reply ! So you don't think there is a hacky way to provide this functionality ?

Let me check something

I've went over it again And the data of the user in the Database is the same, it doesn't seems like there's a way as of now to spot the user creation process.
Let's wait for <:appwrite:637383039499894787> Steven response on the one.

Ok thanks for checking ! I will migrate the rest of my app for now
Recommended threads
- Bypass Error When Creating Account With ...
Suppose user first uses email/pass for log in using xyz@gmail.com, few month later on decides to use google oauth2 with same xyz@gmail.com (or in reverse orde...
- No mails from Appwrite
Hello, Since severals days, i have a problem : i d'ont received any mails from Appwrite. I'm using the auth by mail and i don't any code so any mails from App...
- wrong code for google oauth2 ?
gives User (role: guests) missing scope (account) error
