Testing Phone Authentication, Verification, and LogIn Locally with Appwrite & Twilio
- 0
- Self Hosted
- Auth
- Messaging

Hello all!
For the first time, I'm trying to implement creating, verifying, and login via phone using Appwrite. So far I was able to successfully implemented and tested /signup endpoint. However, I cannot figure out how to make my /verify-phone endpoint to simulate otp. I'm continuously getting : Invalid token passed in the request.
This is my signup, verify-phone, login endpoints in my server.js (node.js). I'm testing in my local.
I've correctly added these to my local appwrite's env.
_APP_SMS_PROVIDER=sms://[ACCOUNT_SID]:[AUTH_TOKEN]@twilio
_APP_SMS_FROM=[TWILIO_PHONE_NUMBER]
Can someone please help me why verification step is failing though signup is working?
Recommended threads
- Show execution status 500 unable to set ...
I want to set the labels at the time user signup to my application , all things work , users data save in auth, updateprefs set , a verification email sent , bu...
- Multi-tenant setup with different passwo...
I’m building a multi-tenant SaaS app using a single project. Each tenant’s data is stored in a separate Database (one DB per tenant). I’m using Auth for us...
- Appwrite 1.7.4 Docker query error
I’m running Appwrite 1.7.4 docker image using the sdk-for-apple package. The collection has 16 documents if l run Query.limit(1) I get one record. But if I run ...
