Skip to content
Back

createPhoneToken() new method email required error

  • 0
  • Flutter
  • Auth
showmore
7 Oct, 2025, 17:57

Hello beautiful people! It’s been a while — I retired at 27, but now I’m back! 😊

I’m running into an issue with Appwrite in Flutter. I used an older version before, but today I updated to:

TypeScript
appwrite: ^20.0.0

Here’s the problem: When I call:

TypeScript
await account.createPhoneToken()

I get an error saying “email required”, even though we know that creating a phone token shouldn’t require an email. Why is this happening?

Also, updatePhoneSession seems to be deprecated. What’s the recommended replacement for it in the latest version?

Any help would be appreciated!

TL;DR
- Developer faces error with `createPhoneToken()` method in Appwrite Flutter after updating to version 20.0.0. - Error states "email required" even though phone token creation shouldn't need an email. - Also looking for replacement for deprecated `updatePhoneSession` method. - Any guidance on resolving these issues is welcome!
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