A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/gr2m/octokit-oauth-app-now-example below:

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

@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.

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

ISC


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4