Skip to content

Instantly share code, notes, and snippets.

View shubhammatta's full-sized avatar
🌏

Shubham Matta shubhammatta

🌏
View GitHub Profile
@arb
arb / github_oauth.js
Last active January 13, 2022 06:55
Example hapi server using GitHub OAuth
var Hapi = require('hapi');
var Bell = require('bell');
var AuthCookie = require('hapi-auth-cookie');
var server = new Hapi.Server();
server.connection({ port: 9001 });
server.register([Bell, AuthCookie], function (err) {
if (err) {