-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃殌 Feature: A new environment variable for sms authentication to set the sms content. #4664
Comments
@aakashcodess thanks for raising this issue! 馃檹 As I understand it, you're requesting a way to customize the SMS message for phone auth. We actually intentionally only send the code to avoid requiring to translate text as well as making it easier to copy the code for pasting. That said, let's see if we get others who would also like to have a template for the SMS message. |
Having this feature would be great. |
This feature will be a good addition, and it will fix the hash code issue as well |
Having a way to customize the sms content to the user seems like something essential (for me). After all, I don't want to have a system that only sends the code, but a customized text to the user. I myself would write the message I want to send to the user. How would I use this feature that sends an SMS to a user, who would receive it without knowing who sent it, where it is from, nothing? |
A template for SMS content would be a great feature! This way i dont have to write a new function to generate a code, control the exp time, userid, etc etc etc... Its ready in Appwrite. |
Its also a way so that OTP is automatically filled up in Android and is automatically copied in iOS. Even if we dont use translation we can use android native API for automatically filling up the OTP without user ever have to open the messages app. In iOS https://stackoverflow.com/questions/39631168/automatic-otp-verification-in-ios the otp is automatically copied if it use https://developer.apple.com/news/?id=z0i801mg correct formatting. |
Please consider providing SMS template as well. We do have email templates but for some reason we do not have one for sms. |
馃敄 Feature description
A new environment variable for sms authentication to set the sms content.
馃帳 Pitch
Appwrite supports multiple sms providers. Some providers use templating flow to send sms, the secret/otp gets replaced in the sms content.
Example: Msg91 supports templating flow, If i have a template, Dear customer, use this One Time Password {{OTP}} to log in to your account. This OTP will be valid for the next 5 mins. Then {{OTP}} will get replaced with secret/otp from appwrite.
While for other providers like twilio, we get only secret/otp in sms body.
馃憖 Have you spent some time to check if this issue has been raised before?
馃彚 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: