- Load
chrome-extension
follow this guide's 2nd step. - Open
facebook.com
and allowInsecure content
on address bar's right 🛡 icon.
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 |