Passport google authentication


#1

Meanjs backend are using

passport-google-oauth are using in server side rest api routes

app.route(’/auth/google’).get(passport.authenticate(‘google’, {
scope: [
https://www.googleapis.com/auth/userinfo.profile’,
https://www.googleapis.com/auth/userinfo.email
]
}));
app.route(’/auth/google/callback’).get(users.oauthCallback(‘google’));

how to connect app from client side to server for google authentication.