- dotenv - use for access .env file data (process.env)
- express - use for nodejs web framwork
- mongoose - use for DB related work
- nodemon - use for automatically restarting the node application
- passport - use for nodeJs authentication
- passport-google-oauth20 - use for Google 0auth
-
Home Pgae
-
Api call for google authentication
-
Api call back function
-
Google send response ❤️
{
id: '107452959910700861566',
displayName: 'programming blog',
name: { familyName: 'blog', givenName: 'programming' },
emails: [ { value: '[email protected]', verified: true } ],
photos:
[ { value: 'https://lh3.googleusercontent.com/a-/AOh14Gg549u3HbJaMt1LysTH_yjQlPb_dIvuR9Ys6pukUQ' } ],
provider: 'google',
_raw: '...',
_json:
{ sub: '107452959910700861566',
name: 'programming blog',
given_name: 'programming',
family_name: 'blog',
picture: 'https://lh3.googleusercontent.com/a-/AOh14Gg549u3HbJaMt1LysTH_yjQlPb_dIvuR9Ys6pukUQ',
email: '[email protected]',
email_verified: true,
locale: 'en'
}
}
- passport - use for nodeJs authentication
- passport-facebook - use for Facebook auth
- Api call for facebook authentication
- Api call back function