Ahen calling the
/passwordless/start authentication endpoint (from some server code) I am setting the
x-request-language header to specify a language and then I am testing in the email template on the
request_language variable to adapt the content.
I do this according to this documentation: Passwordless Authentication with Email
This is not working, and in fact, I might be wrong but I believe this used to work and stopped working (cannot be sure when exactly, but no later than 2-3 months ago). I only noticed this regression in our app recently where users no longer receive their email in the correct language.
I have double-checked that the header is sent correctly, and tried to display the request_language value in the email body, and it is always empty.
So, is this feature actually working or is there a known issue? If there is an issue, any idea how I could have 2 different passwordless auth emails for 2 different languages (can’t see another way to do this right now)?