There is a good explanation of how to get user info from decode token after user linked his account:
https://developers.google.com/assistant/identity/google-sign-in
But there is no token in the following intent request and It's difficult to identify the user.
Example of intent request:
{
"handler": {
"name": "createAccount"
},
"intent": {
"name": "",
"params": {
"AccountLinkingSlot": {
"original": "",
"resolved": "LINKED"
}
},
"query": ""
},
"scene": {
"name": "newReminder_AccountLinking",
"slotFillingStatus": "FINAL",
"slots": {
"AccountLinkingSlot": {
"mode": "REQUIRED",
"status": "SLOT_UNSPECIFIED",
"updated": true,
"value": "LINKED"
}
},
"next": {
"name": "newReminder"
}
},
"session": {
"id": "ABwppHEWx6GkkRzyCIT3DMHsriVnkbW3RggNv9lUSbHfdU2kjljB7PP2jXOPk_kxxwBzyYqzc-kk6EjTRZs",
"params": {
"AccountLinkingSlot": "LINKED"
},
"typeOverrides": [],
"languageCode": ""
},
"user": {
"locale": "en-US",
"params": {},
"accountLinkingStatus": "LINKED",
"verificationStatus": "VERIFIED",
"packageEntitlements": [],
"gaiamint": "",
"permissions": [],
"lastSeenTime": "2021-01-10T19:23:30Z"
},
"home": {
"params": {}
},
"device": {
"capabilities": [
"SPEECH",
"RICH_RESPONSE",
"LONG_FORM_AUDIO"
]
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…