Skip to content

devfikdark/auth-API

Repository files navigation

NodeJs Authentications

Common dependencies

  • 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

Google authentication

Development dependencies

Routes

{ 
  id: '107452959910700861566',
  displayName: 'programming blog',
  name: { familyName: 'blog', givenName: 'programming' },
  emails: [ { value: 'morolswediu@gmail.com', 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: 'morolswediu@gmail.com',
     email_verified: true,
     locale: 'en' 
    } 
}

Facebook authentication

Development dependencies

Routes