Reputation: 371
I'm trying to get users public details in google-plus. I have only users public URL. Is there way to get users public details?
Upvotes: 0
Views: 55
Reputation: 211
You should use scopes in your request, you can find info here https://developers.google.com/+/web/api/rest/oauth#authorization-scopes
Or if you use passport.js you can try somethink like this:
passport.authenticate('google', {
scope:[ 'email', 'profile'],
failureRedirect: '/'
})
Upvotes: 2