hasura-auth icon indicating copy to clipboard operation
hasura-auth copied to clipboard

Implement SMS Templates for Auth

Open elleryfamilia opened this issue 2 years ago • 4 comments

Currently the SMS that goes out says "Your code is 000000"

Ideally we are able to customize a template and insert the code as a variable:

Nhost - Here is your code: {{verification_code}}. Don't share it with anyone

To push things even further, you could even make Auth variables available for the templates:

{{first_name}}, here is your code: {{verification_code}}. Don't share it with anyone

elleryfamilia avatar Jun 12 '22 20:06 elleryfamilia

I think we can have this as an environment variable: AUTH_SMS_TEMPLATE.

I'll move this issue to Hasura Auth for now.

elitan avatar Jun 13 '22 05:06 elitan

A AUTH_SMS_TEMPLATE may be the quickest way forward, but we would miss translations. Eventually we will likely need to implement the same system as for email templates

plmercereau avatar Jun 15 '22 07:06 plmercereau

Can I pick this up next days? I can implement the template approach.

azlekov avatar Jun 30 '22 11:06 azlekov

Yes, definitely!

plmercereau avatar Jun 30 '22 12:06 plmercereau