Skip to content
Back

createPhoneToken not working with expo

  • 0
  • React Native
  • Auth
  • Cloud
ayandajuqu_)
12 Sep, 2025, 07:39

const phoneResponse = await account.createPhoneToken(response.$id, phone);

this gives this error: OTP error: [AppwriteException: Server Error]

  • phone is in the desired format e.g +27 xxx xxx xxx
  • i am using expo and tried to update the appwrite sdk still gives the same error
  • region used is frankfurt
TL;DR
Issue: `createPhoneToken` function with Expo and Appwrite SDK gives 'Server Error' when called with the phone number in the correct format. Tried updating SDK and changing the server region to Frankfurt but still facing the same issue. Solution: The error message points towards a server-side problem. Contact Appwrite support for further assistance and troubleshooting on their end.
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