easy-login
Social Login for you expressjs apps in the easiest way
Allows login to Facebook, Github, Google, Instagram, Linkedin, Pinterest, Steam and Twitter.
Requirements and Use
// npm install easy-login --saveyarn add easy-login
Use
;;; ; const app = ; ;
The package easy-login automatically generates two routes to have social login in your application:
/auth/facebook
/auth/facebook/callback
For this you need pass to easy login an instance of your express application and a user model like that:
; /** * User Schema */const userSchema = name: type: String index: true email: type: String unique: true index: true password: type: String facebook: type: String twitter: type: String google: type: String github: type: String instagram: type: String linkedin: type: String steam: type: String profile: name: type: String gender: type: String location: type: String website: type: String picture: type: String ; /** * Registration */const User = mongoose;moduleexports = User;