After creating an OAuth2 project on the Google API Console website, continue with the next step, creating the OAuth2 consent.

To create an OAuth2 consent:

  1. In your web browser, sign in to Google API Console using your Gmail account and open your project.
  2. In the left-side menu, select OAuth consent screen, and then click Get Started.

  3. In the Project configuration form in App name, enter the name of the application asking for consent.
  4. In User support email, enter an email address that will be displayed to users on the consent screen, and then click Next.
  5. In Audience, select Internal or External and click Next.

  6. In Contact Information, enter a contact email address for Google to notify you about any changes to your project, and then click Next.
  7. Select the agreement checkbox and click Create.

  8. Continue with creating an OAuth client ID.