I have implemented account linking in google actions. I've chosen OAuth with Implicit linking type. i got my account linked, but i'm not getting access-token in subsequent calls. In the google documentation says :" After Google has obtained an access token for your service, Google will attach the token to subsequent calls to your Action as part of the AppRequest." The user information in the request should be in the following format:
{
user : {
"idToken": string,
"profile": {
object (UserProfile)
},
"accessToken": string,
"permissions": [
enum (Permission)
],
"locale": string,
"lastSeen": string,
"userStorage": string,
"packageEntitlements": [
{
object (PackageEntitlement)
}
],
"userVerificationStatus": enum (UserVerificationStatus)
}
}
google apprequest format : https://developers.google.com/assistant/conversational/df-asdk/reference/webhook/rest/Shared.Types/AppRequest#User.FIELDS.access_token
but i'm getting the request which is not containing any accessToken.
{
user:
{ locale: 'en-GB',
params: {},
accountLinkingStatus: 'LINKED',
verificationStatus: 'VERIFIED',
packageEntitlements: [],
lastSeenTime: '2020-11-09T09:07:54Z' }
}
google account linking docs :https://developers.google.com/assistant/identity/oauth2?oauth=implicit#flow