How to Get OTP from gamil & pass it to another url

I need to get the OTP from gmail to login the application as we have DUO enabled on our application.

Did you tried to use this plugin ?

After getting OTP from Gmail, save it in a variable and just use the same anywhere you want