Search code examples
node.jsactions-on-googlegoogle-home

Retrieving userdata directly after user completes acount linking on their phone


I'm building an application using Accountlinking for a Google Home speaker using the Actions On Google SDK. I am using the Oauth feature which allows a user to sign-in into an account on their phone by sending them a link with a login window.

enter image description here

When the sign-in is triggered, the conversation on the Google speaker is ended. I would like to use some user information that comes from the accountlinking process right after the user is done with the accountlinking.

When you build a conversation for assistant on mobile, you can await the actions.intent.SIGN_IN event to continue the conversation, but even when you implement this, a conversation for the speaker will end.

Is there any way to use user information directly after a user linked their account for a Google Home speaker app without users having to restart the conversation?


Solution

  • Once the user has to jump to the phone to perform account linking, the conversation on the speaker ends since the context has shifted devices. After account linking finishes, you could try to transfer to a new surface, although you will not necessarily have the ability to go back to the original device.