Back

How can i add phone number from flutter sdk?

  • 1
  • Flutter
  • Accounts
Dipen
14 Jul, 2023, 07:07

I checked the appwrite auth in UI and there is phone number but when I saw the sdk, it wasn't there. How can I add the phone number?

TL;DR
The user wants to add a phone number using the Flutter SDK. The console uses the server API for this purpose. The user can call 'update phone' in their Flutter app after the user logs in. The SDK documentation doesn't mention adding a phone number, but the UI does have an option for it. The user is seeking guidance on how to add a phone number. Solution: The user can refer to the server API documentation for creating users and the SDK documentation for updating phone numbers.
Drake
15 Jul, 2023, 00:42

The console uses the server API: https://appwrite.io/docs/server/users?sdk=nodejs-default#usersCreate

In your flutter app, you would call update phone after they log in.

https://appwrite.io/docs/client/account?sdk=web-default#accountUpdatePhone

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