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
- I'm getting error Invalid `url` param: I...
``` 2025-10-26T12:52:02.292Z [error] AppwriteException: Invalid `url` param: Invalid URI. Register your new client (vercel.com) as a new Web platform on your pr...
- Unknown column 'sourceSize' in 'field li...
After migrating from 1.6.1 to 1.7.4 I noticed this message in the logs: `appwrite-worker-stats-resources | 2025-10-26T10:32:38.289577112Z Failed: SQLSTATE[...
- Invalid document structure: Missing requ...
After migrating from 1.6.1 to 1.7.4 I noticed this message in the logs: appwrite-worker-audits | 2025-10-26T11:15:24.062537020Z Error processing a...