I am using the hosted authentication and I’d like to get the public username after google signin. I’ve used this method mentioned in another post
However, the decoded JWT token doesn’t have any name field nor picture field. I am using Java client. My project on google console have following scopes
/auth/userinfo.email
/auth/userinfo.profile
/auth/calendar
/auth/calendar.events
/auth/contacts.readonly
All of these are enabled on Nylas side too.
For me, the decoded JWT looks something like:
{
“header” : {
“alg” : “HS256”,
“typ” : “JWT”
},
“payload” : {
“at_hash” : xxxxxxx,
“aud” : “$nylas_v3_url”,
“email” : xxxx@gmail.com,
“exp” : xxxxxxx,
“iat” : xxxxxx,
“iss” : “nylas”,
“provider” : “google”,
“sub” : “xxxxxxxxxx”
},
“signature” : “xxxxxxxxxxxxxx”
}
Following up question, will this work for MS and iCloud connectors too?