Last active
April 24, 2023 15:26
This file contains 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
// import required dependencies | |
import dotenv from 'dotenv'; | |
import nodemailer from 'nodemailer'; | |
import { google } from 'googleapis'; | |
const OAuth2 = google.auth.OAuth2; | |
// init dotenv | |
dotenv.config(); | |
// get environment variables | |
const OAUTH_EMAIL = process.env.OAUTH_EMAIL || '' as string; | |
const OAUTH_CLIENT_ID = process.env.OAUTH_CLIENT_ID || '' as string; | |
const OAUTH_CLIENT_SECRET = process.env.OAUTH_CLIENT_SECRET || '' as string; | |
const OAUTH_REFRESH_TOKEN = process.env.OAUTH_REFRESH_TOKEN || '' as string; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment