GithubHelp home page GithubHelp logo

gr2m / octokit-oauth-app-now-example Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 1.0 43 KB

Serverless OAuth API using @octokit/oauth-app & now

Home Page: https://octokit-oauth-app-now-example.now.sh

License: ISC License

TypeScript 54.65% HTML 12.65% JavaScript 30.22% CSS 2.49%

octokit-oauth-app-now-example's Introduction

@octokit/oauth-app serverless example

This example showcases how to create an OAuth Client server for GitHub's (OAuth) Apps for a serverless environment using now

All the default routes are implemented using separate files in the /api folder

Learn more about @octokit/oauth-app.

Setup

Create two OAuth GitHub Apps, one for production and one for local development: https://github.com/settings/applications/new

The one for production needs to set Authorization callback URL to your apps URL: https://<your app name>.now.sh. Then one for local development needs to set it to http://localhost:3000

Set the octokit-oauth-app-client-id and octokit-oauth-app-client-secret secrets using the now CLI

now secrets add octokit-oauth-app-client-id <Client ID>
now secrets add octokit-oauth-app-client-secret <Client Secret>

Then create an .env file and put in the Client ID & Secret for your

License

ISC

octokit-oauth-app-now-example's People

Contributors

gr2m avatar dependabot[bot] avatar

Stargazers

telegram-clibot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/getMe avatar Camila Belo avatar Tommy D. Rossi avatar Ty Schenk avatar Nikita avatar Josh Pollock avatar Léandre DA SILVA avatar Andy Shevchenko avatar Charlike Mike Reagent avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

camilaibs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.