Connect your email account to open your inbox.
In Google Cloud, enable Gmail API and add as an authorized JavaScript origin for your Web application OAuth client. If your OAuth app is in testing, add your Gmail address as a test user.