Back

When I try to use `account.createPhoneSession` the method doesn't seem to exist

  • 0
  • Auth
  • Web
Tonio
3 Jun, 2024, 20:07

I'm just trying to kick the tires of the auth API and it seemed easiest to start with SMS auth, but I can't get it to work.

I'm working off this documentation: https://appwrite.io/docs/products/auth/phone-sms

TL;DR
Issue with using `account.createPhoneSession` method, it doesn't seem to exist. The correct method to use is `account.createPhoneToken`. Start with SMS auth by referring to the documentation provided: https://appwrite.io/docs/products/auth/phone-sms
Steven
3 Jun, 2024, 20:09

I think we have an issue/PR to update this. The method should be https://appwrite.io/docs/references/cloud/client-web/account#createPhoneToken

Tonio
3 Jun, 2024, 20:10

Aha that’s fantastic. I’ll give it a shot asap.

Tonio
3 Jun, 2024, 20:13

Btw I am trying AppWrite chiefly because I spent the entire afternoon trying to figure out why Google Firebase functions wouldn’t deploy my hello world function 😉

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