Primary login with email ID instead of Username in Duo TFA Implementation

Hi,

In the Two-factor authentication implementation of Duo with Web-SDK, we do the primary authentication of Duo with Duo user’s username using “sign_request(ikey, skey, akey, username)”.
Here, my requirement is, instead of username, I want to authenticate with the email Id present in the email id field of the Duo user.

Is this possible?

Duo is a secondary authentication not a primary. You want to change the behavior of your primary authentication? Not sure exactly what you are trying to do here but maybe you can try populating the “Username Alias 1” field in Duo with the email address of the user.