Classic Login Universal Login for MFA Hybrid language setting

We are looking to implement MFA, but we need to continue using Classic Login to support a number of our custom scenario’s.

This has presented a challenge setting languages between the two different methods.

The process flow starts with classic login, and then in a post login action, we do a check to see if the user is enrolled in MFA. If they are, we use api.authentication.challengeWith to challenge, , and if not, we use api.authentication.enrollWith to enroll.

The issue is neither of these methods provide a way to set the language so that the downstream universal login components will pick it up and use the language of choice for the user.

How do we pass language to the universal login mfa components using api.authentication methods or otherwise?

Hi @swestner,

Welcome to the Auth0 Community!

I recommend referring to our Language translation in Classic Universal Login knowledge article. This way the language is determined at the beginning of the login request and is passed downstream to the MFA challenge pages. It won’t be possible to change the language mid-authentication flow.

Thanks,
Rueben