Skip to content

Instantly share code, notes, and snippets.

View thenetimp's full-sized avatar

Net Imp thenetimp

  • Tokyo, Japan
  • 03:39 (UTC +09:00)
View GitHub Profile
@thenetimp
thenetimp / index.js
Last active March 14, 2021 00:28 — forked from dionysio/index.js
Firebase Cloud Function 3rd Party Oauth Flow For Twitch
const functions = require('firebase-functions');
var admin = require("firebase-admin");
const cookieParser = require('cookie-parser');
const crypto = require('crypto');
const axios = require('axios');
admin.initializeApp({});
/**
* Creates a configured simple-oauth2 client for Twitch.