Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

cadbox1/github-oktokit-oauth-netlify

Open more actions menu

Repository files navigation

GitHub Oktokit OAuth using Netlify Function

GitHub doesn't support the OAuth Implicit flow so you need some server code to handle Authorization flow so I thought I would use Netlify Functions for it.

Largely based on: intercom-netlify-oauth.

Prior Art

Setting Up

Create an OAuth App

Setup a Netlify project and configure the the following environment variables; CLIENT_SECRET and REACT_APP_CLIENT_ID.

Netlify Dev.

npm install -f netlify-cli
netlify login
netlify link

Running Locally

netlify dev

Netlify Dev is pretty cool, it can run your server function locally.

About

Create-React-App that uses a Netlify Function to authenticate with GitHub then configures Oktokit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.