
How to achieve this.

I don't this that there is a direct way to achieve that.
But, what you can do is to create a function to handle this.
Inside of the function use the Users server SDK to get the user https://appwrite.io/docs/server/users?sdk=nodejs-default#usersGet
Now, you can check if the user has only phone, that mean this user was created with a phone.
Then you can use updateEmail
to set email for that user.
https://appwrite.io/docs/server/users?sdk=nodejs-default#usersUpdateEmail
So the user will be able to login using email or phone.

will appwrite charge for authencation ?

You mean in the cloud? for the SMS?

yes

Now it's free part of the public beta. I think is going to be some pricing - or at least some limits on the free tier - when it will go public.

Thanks @Binyamin

As of now, we do not have pricing, we will do in future but we are going to definitely have a generous free tier as well @conqueror

[SOLVED] how to to log in with both an email and a phone number on the same account
Recommended threads
- "Memberships privacy" setting in 1.7.4
Hi everyone, I'm experiencing an issue with a clean self-hosted installation of Appwrite version 1.7.4. I previously used version 1.6.1, and if I remember corre...
- Function 404 error - Deployment with the...
I have a function in my Appwrite Cloud (free plan) project that cannot be accessed or deleted (404 in both UI and CLI). I'm stuck at the 5 functions limit and c...
- 1.6 to 1.7 does not work
Appwrite (self-hosted) stopped working after updating from 1.6.2 that was stable. Getting the general_server_error. Mentioning I fallowed all steps for upgrad...
