MarkEdmondson1234 / googleAuthR

Google API Client Library for R. Easy authentication and help to build Google API R libraries with OAuth2. Shiny compatible.
https://code.markedmondson.me/googleAuthR
Other
175 stars 54 forks source link

get user email using googleAuth_jsUI() #196

Closed Flavjack closed 3 years ago

Flavjack commented 3 years ago

Problem: I'm trying to get the email information after user logIn using the googleAuth_jsUI() module.

Description: I noticed that now is not available the option using googleID::get_user_info(). I'm using the googleAuth_jsUI() module with the scope = "https://www.googleapis.com/auth/userinfo.email". But I was not able to get the email info. I tried the module googleSignIn() and it's give me the info but i can use another scopes and in this case i should add 2 modules (googleAuth_jsUI & googleSignInUI()) in the ui but is not feasible.

Question: There is i way to get the email information using googleAuth_jsUI() module?

many thanks!

Flavjack commented 3 years ago

Sorry Mark. i found the solution using gar_api_generator(). Thanks