Using a Google Account "Application Specific Password"

Quoting, “Some applications that access your Google Account (such as Gmail on your phone or Outlook) cannot ask for verification codes. To use these applications, you will not use verification codes. Instead, you’ll enter an application-specific password in place of your normal password.”

See—