Automatically fill verification codes on Mac
Some websites and apps offer two-factor authentication (also known as multifactor authentication), which helps prevent other people from accessing your accounts even if they know your passwords. Passwords are the first authentication factor, and temporary, one-time verification codes are commonly a second factor.
Set up an automatic verification code for a website or app
Sign in to the area of the website or app where you manage your account, then select options to enable two-factor authentication and an authenticator app.
Choose the option to manually use a setup key (or setup code or similar), then select and copy the setup key.
Go to the Passwords app on your Mac.
Locate and select the website or app account.
Click Edit, then click Set Up Code.
Paste the setup key into Setup Key.
Click Use Setup Key.
Click the Verification Code, then choose Copy Verification Code.
Return to the website or app, then paste the verification code where directed.
Use a verification code on a website or in an app
Sign in to the website or app.
If prompted, select the option to use an authenticator app.
When asked for a verification code, click the suggestion that appears above the keyboard.
If no suggestion appears, go to the Passwords app on your Mac, select your account for the website or app, click the verification code, then choose Copy Verification Code. Return to the website or app, then paste the verification code into the field.