Setup required: Replace the OAuth Client ID in the script with your Google Cloud OAuth 2.0 Client ID before sign-in will work.
Permissions requested
👤
View your Google account profile & email address
Read your Gmail messages
📁
Manage Gmail labels and message metadata