-
Notifications
You must be signed in to change notification settings - Fork 603
Description
I have been working on creating a custom policy to allow users to log in using either their username or email, along with the option to select their preferred MFA method.
As a base, I used the example policy SignUp_SignIn_PhoneOrEmailMFA. While everything works correctly when logging in with an email, I am encountering an issue when logging in with a username. Specifically, the correct email value associated with the user is not retrieved.
Login with Email (The flow works as expected, and the correct email is retrieved)

Login with username (The email is not retrieved correctly)
Could you please assist me in resolving this issue? I would like to ensure that the correct email is retrieved regardless of whether the user logs in with their username, email or another method.
