
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
- Sharing cookies
Hi, I’m using Appwrite Cloud, and I have a setup where my Appwrite backend is hosted on a subdomain (e.g., api.example.com), while my frontend (Next.js app) and...
- Organization not exists anymore
Hello! We have a problem with a cloud database. We are on the Free plan, but after a refresh the site wants me to create a new organisation, and I not see the c...
- JSON and Object Support in Collection do...
I am working with Next.Js and Appwrite Cloud, I am relatively New to Appwrite but i have noticed there is no direct support of JSON and Object support in attrib...
