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?