'Google OAuth consent screen permissions

We have developed an email app that uses Google OAuth for sign-in in GMail accounts.

The consent screen looks like this, with checkboxes allowing users to choose different permission to give their consent to:

consent screen 1

But I see other apps that have the following consent screen without the checkboxes, which is what we want:

consent screen 2

How can we achieve this behavior in our consent screen?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source