Back

how to add phone number during user signup?

  • 1
  • Web
Armstone
6 Mar, 2024, 07:22

a

TL;DR
To add a phone number during user signup, developers can create an anonymous session first. Then, use the returned `User` to add a Phone Number via `account.updatePhone()`. Later on, the developer can use `account.createPhoneSession()` for login. It is important to note that `account.create()` only accepts ID, email, password, and name as parameters.
Armstone
6 Mar, 2024, 07:24

expect phone other all data are being saved

ideclon
6 Mar, 2024, 07:28

account.create() only takes four parameters - ID, email, password and name

ideclon
6 Mar, 2024, 07:29

If you want to add a phone number to an account, you’ll have to call account.updatePhone() after signing in.

darShan
6 Mar, 2024, 07:42

Afaik, you can create an anonymous session then use the returned User to add a Phone Number via account.updatePhone() & then later use account.createPhoneSession() for login.

Armstone
6 Mar, 2024, 07:50

okay

Armstone
6 Mar, 2024, 07:50

i will try

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more