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
- Zeit's Now account.
- Install Now CLI.
- Create a Github's oAuth app.
- Setup the following details as Now secrets:
- client_id as
@app-client-id
- client_secret as
@app-client-secret
- redirect_uri as
@app-redirect-url
- client_id as