Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shreyxnsh/passport-auth
https://github.com/shreyxnsh/passport-auth
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/shreyxnsh/passport-auth
- Owner: shreyxnsh
- Created: 2023-10-31T15:20:30.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-15T15:35:05.000Z (about 1 year ago)
- Last Synced: 2023-11-15T16:34:11.920Z (about 1 year ago)
- Language: JavaScript
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readMe.md
Awesome Lists containing this project
README
=> Run below command to run the app:
node index.js=> Using Passport.js library of NodeJS, app includes sign-up with google, facebook and Github functionality,
=> The controller file 'google-auth.js' contains all the code for authentication with google feature.
Steps for OAuth:
1. First I need to create a app that will give me client ID, secret key and redirect URI from developer console(Google/facebook/github).
2. Install and import required packages.
3. Pass these three parameters to Google Strategy.
4. Implement the code.