Application 2FA

Hi, Maybe you can help me:
My web application have 2FA validation inside. I need a code for login. This code is present inside a google extension. Test case is:
My web have a qr scan the first time, scan this qr with extension google auth. Secondly, you can use a generated code that it’s active 10s. The second time that you have login, only need copy the code.
The steps for login are:

  1. Navigate url
  2. type username
    3.Type pwd
    4.Login
    5.Introduce(paste) 2FA code.
  3. Enter

I try with this, but I haven’t found the right way.