https://github.com/pwang1997/express-oauth
https://github.com/pwang1997/express-oauth
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pwang1997/express-oauth
- Owner: pwang1997
- Created: 2020-12-27T10:32:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-29T23:08:47.000Z (over 5 years ago)
- Last Synced: 2025-01-08T20:34:42.742Z (over 1 year ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**# passport-example**
A simple practice of using OAuth library in Node.
### Usage
Start the program
```
npm start
```
Import Google Credentials
1. https://console.developers.google.com/apis/credentials
2. create project and Oauth 2.0 Client IDs
3. add "http://localhost:3000/google/callback" and "http://localhost:3000/google/" to **Authorized redirect URIs**
4. save **Client ID** and **Client secret** to .env file
Import Facebook Credentials
1. https://developers.facebook.com/apps/
2. create app
3. add "http://localhost:3000/facebook/callback" to **Settings/Adanced/Share Redirect Allow List**
4. save **APP ID** and **App secret** to .env file