CapacitorGoogleAuth icon indicating copy to clipboard operation
CapacitorGoogleAuth copied to clipboard

"name" not returned on android but only on web app

Open eugenelet opened this issue 3 years ago • 0 comments

Hi all,

This must be a simple mistake where I might have missed something or two. The problem I have is that Google login returns the info I need on Web App, e.g.:

{ email: ,
 familyName: ,
 givenName: ,
 id:  ,
imageUrl:,
name: ,
authentication: {…}, 
serverAuthCode:  }

whereas the Android App implementation only returns these:

token: , verification: {
      "issued_to": ,
      "audience": ,
      "user_id": ,
      "scope": "https://www.googleapis.com/auth/userinfo.email openid https://www.googleapis.com/auth/userinfo.profile",
      "expires_in": 1564,
      "email": ,
      "verified_email": true,
      "access_type": "online"
    }

I'm expecting the "name" information which is missing for the android app. What could I be missing here? Thanks!

eugenelet avatar Jun 23 '22 12:06 eugenelet