This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { google } = require('googleapis'); | |
| const privatekey = require('./private-key.json'); // This was downloaded when you created your Service Account Key | |
| const scopes = ['https://www.googleapis.com/auth/gmail.settings.basic']; | |
| const auth = async (user) => { | |
| try { | |
| const jwtClient = new google.auth.JWT( |
OlderNewer