Skip to content

Instantly share code, notes, and snippets.

View Fyko's full-sized avatar
🏠
Working from home

Carter Fyko

🏠
Working from home
View GitHub Profile
const { randomBytes } = require('crypto');
const fetch = require('node-fetch');
const FormData = require('form-data');
const { parse } = require('url');
module.exports = class OAuth2 {
constructor({
endpoint,
clientID,
clientSecret,