Issue with Appwrite Phone Auth and MSG91 Integration: Missing OTP in SMS
- 2
- Self Hosted
- Flutter
- Auth
Although the SMS delivery is successful, the OTP (One-Time Password) required for authentication is not included in the message received by the user. This renders the authentication process incomplete and unusable for our intended purposes.
SMS Template:
OTP ##var## for ##var##. Please do not share it with anyone. OTP is valid for 5 minutes.
SMS Received by User:
OTP for . Please do not share it with anyone. OTP is valid for 5 minutes.
Appwrite Version: 1.5.4
Would you please set your variable to ##content##?
Okay, I can set ##content## and update you after verifying a new SMS template. it may take some time.
I am unable to set the ##content## variable in the SMS template.
why's that?
Due to TRAI(Telecom Regulatory Authority of India) and DLT rules.
@Steven Is there any other way to resolve this issue?
that doesn't make sense. the only thing you changed in the template is the variable name and that was rejected?
Actually, not rejected. When I'm attempting to register a new template, the platform displays a warning message indicating that no variables were found in the template.
New template:
OTP ##content## for ##project##. Please do not share it with anyone. OTP is valid for 5 minutes.
There is any template for the OTP in Appwrite? @Steven
Hi @Steven I understand that the OTP is not being included in the message because Appwrite is not using the variable in MSG91 to send the SMS API.
https://github.com/utopia-php/messaging/blob/main/src/Utopia/Messaging/Adapter/SMS/Msg91.php
https://docs.msg91.com/sms/send-sms?version=V5 or https://docs.msg91.com/otp/sendotp?version=V5
Recommended threads
- [Beginner] CLI --queries Syntax Error & ...
Hi everyone! I am a beginner with Appwrite and trying to use the CLI, but I'm stuck with a syntax error. Any guidance would be greatly appreciated! 🙏 **Enviro...
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...
- general_bad_request when creating accoun...
I have created a new bug request, could anyone have a look - https://github.com/appwrite/appwrite/issues/11908?