/github-oauth-lambda

Lambda function for Github OAuth token exchange

Primary LanguageJavaScript

Github OAuth Lambda Function

  • No dependencies!
  • Environment Variables:
    • CLIENT_ID
    • CLIENT_SECRET
    • CORS_ORIGIN
  • Successful response (application/json)
{
  token: <YOUR_TOKEN>
}
  • Unsuccessful response (application/json)
{
  message: <ERROR_MESSAGE>
}