https://github.com/sorodrigo/oauth-login
https://github.com/sorodrigo/oauth-login
github now now-cli now-sh oauth
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sorodrigo/oauth-login
- Owner: sorodrigo
- License: mit
- Created: 2019-12-16T21:54:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T03:09:36.000Z (over 3 years ago)
- Last Synced: 2025-02-08T07:25:52.298Z (about 1 year ago)
- Topics: github, now, now-cli, now-sh, oauth
- Language: TypeScript
- Homepage: https://oauth-login.now.sh/
- Size: 2.61 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oauth-login
This app is runs on top of Now.sh serverless deployments. The frontend retrieves a `code` from github's oauth login and sends it to a lambda function. This endpoint uses the `code` to request an `access_token`. The token is later sent back for the client to use to interact with Github's API.
## Requirements
1. [Zeit's Now account.](https://zeit.co)
2. [Install Now CLI.](https://zeit.co/download)
3. [Create a Github's oAuth app.](https://developer.github.com/apps/building-oauth-apps/)
4. Setup the following details as [Now secrets](https://zeit.co/docs/v2/serverless-functions/env-and-secrets#adding-secrets):
- client_id as `@app-client-id`
- client_secret as `@app-client-secret`
- redirect_uri as `@app-redirect-url`
