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 http = require('http') | |
const url = require('url') | |
const { google } = require('googleapis') | |
const fs = require('fs') | |
const { web: credentials } = require('./client_secret.json') | |
const oauth2Client = new google.auth.OAuth2( | |
credentials.client_id, | |
credentials.client_secret, | |
'http://localhost:3000' // this is our redirect url for the authorization. |