Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 3.43 KB

index.md

File metadata and controls

19 lines (14 loc) · 3.43 KB

Test chrome extension

  1. Load chrome-extension follow this guide's 2nd step.
  2. Open facebook.com and allow Insecure content on address bar's right 🛡 icon.

Setting .env

Learn how to set values for the four keys in the .env below.

  • OAUTH_GITHUB_CLIENT_ID
  • OAUTH_GITHUB_CLIENT_SECRET
  • OAUTH_GITHUB_CALLBACK_URL
  • PERSONAL_ACCESS_TOKEN
Key Description in used API Reference
PERSONAL_ACCESS_TOKEN We should use this token for Rate Limiting

60 requests/hour to 5000 requests/hour
- Get user's gists
- Get user's a gist
- Star gist(call after create gist)
-Get user's starred gists
- Create a token
scope: gist
OAUTH_GITHUB_CLIENT_ID
OAUTH_GITHUB_CLIENT_SECRET
These keys are used to get access token - Login with GitHub - Create OAuth app
- usage
OAUTH_GITHUB_CALLBACK_URL GitHub returns the user to after successful authentication.
In development mode, you just set the value to http://localhost:3000/api/auth/github/callback
- Authentication