angular-google-plus icon indicating copy to clipboard operation
angular-google-plus copied to clipboard

Added getProfile() method for retrieving Google Plus profile including email address

Open zephinzer opened this issue 10 years ago • 5 comments

I've added a feature that I've got working on my side to 'src'. No testing has been done so I have not included it in 'dist'. The new method should return a profile that includes the user's email address.

zephinzer avatar May 08 '15 18:05 zephinzer

So this enhancement only makes it more convenient to grab the "whole" profile instead of grabbing all the data separately ?

mrzmyr avatar Feb 28 '16 13:02 mrzmyr

:+1:

pbrain19 avatar Jul 20 '16 01:07 pbrain19

merge immediately.

pbrain19 avatar Jul 20 '16 01:07 pbrain19

After testing it seems that the scope needs to be adjusted.

pbrain19 avatar Jul 20 '16 01:07 pbrain19

The easy way is to just extend scope. when u init in the provider u can extend scope. Give it the email auth 'https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email' and when u request it, it will work.

pbrain19 avatar Jul 20 '16 13:07 pbrain19