personium / app-personium-calendar

Apache License 2.0
0 stars 8 forks source link

Should use access token to retrieve Google account ID (email) #100

Closed dixonsiu closed 6 years ago

dixonsiu commented 6 years ago

Solution (Reference)

  1. Add the following scope to the authorization request.
    "https://www.googleapis.com/auth/userinfo.email"
  2. After the reqest returns an access token, send a GET request using the following endpoint.
    "https://www.googleapis.com/userinfo/email?alt=json"
  3. Response sample:

    {
        "data":{
            "email": "dixon.siu@gmail.com",
            "isVerified": true
       }
    }