Back

Is there a way for demo mobile numbers in phone auth?

  • 0
  • Users
  • Accounts
  • Web
  • Self Hosted
gaurav_ch
12 Dec, 2023, 06:35

I need to have some demo phone numbers like 9999999999 for testing but do not want to trigger an otp sms. is there a way to add these numbers in auth? self host v1.4.13

TL;DR
The user wants to know if there is a way to use demo mobile numbers for testing without triggering an OTP SMS. They mention using `http://request-catcher:5000/mock-sms` for testing and suggest using `_APP_SMS_PROVIDER=user:password@mock` in the code. However, this does not work for them and they have created a feature request on GitHub. No solution is provided in the thread.
Drake
12 Dec, 2023, 18:45

Not when actually running Appwrite

Drake
12 Dec, 2023, 18:47

actually...you might be able to use:

TypeScript
_APP_SMS_PROVIDER=user:password@mock
Drake
12 Dec, 2023, 18:48

we use that in tests...the requests get sent to http://request-catcher:5000/mock-sms

gaurav_ch
9 Jan, 2024, 06:36

hey this does not work. I used _APP_SMS_PROVIDER=+919999999999:123456@mock but I could not login. I have created a feature request on github.

ideclon
9 Jan, 2024, 06:59

You don't get any request on http://request-catcher:5000/mock-sms?

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