No trigger after passwordless email challenge

I have implemented passwordless authentication via email (passwordless-email-challenge) in my application.

However, I need to implement a multilingual email flow, as we support over 20 languages. Using a single Handlebars template is not a viable solution for us due to the number of languages involved. I would prefer to send the appropriate email in the user’s preferred language by selecting the correct template based on the user’s locale.

Additionally, I would like to offer users who choose this authentication method the option to log in via a “magic link” (a one-click link to log in directly), in addition to the traditional authentication code. Both options should be available in the email, allowing the user to select the method that is most convenient for them.

Unfortunately, in Auth0, there does not appear to be a trigger that would allow me to send the magic link or the code to SendGrid, while also selecting the correct email template based on the user’s language. I have tried all available triggers, but the only one that fires is pre-create-user, which doesn’t provide access to these values.

From what I understand from this topic: Passwordless email template - #7 by paulimar.angulo obtaining code or link on my own is not possible.

Could you please advise how I can resolve this issue?

Hi @as11

Welcome to the Auth0 Community!

I anm sorry about the late reply to your post.

If you are using Universal Login for you application, as mentioned in our documentation about using Passwordless with Magic Links, this feature is unavailable and it can be used only with the Classic Login.

In regards to your multilingual approach to the verification emails, please review our documentation regarding using Liquid Syntax in Email Templates, however this approach can not be feasible since you might be limited by the size limit of the templates.

Otherwise, Auth0 does not provide the option to send both a verification link and code via the same email at this time and also we do not have any features available for email localization. Feel free to submit a Feature Request. This is a direct line to our Product team and the best way to communicate this type of request.

If you have any other questions regarding the matter, feel free to leave another reply on the post.

Kind Regards,
Nik

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.