I want to get the linked email id with google home , when user triggers an intent. I have followed the following link How to get user's unique identity from google home's voice match profile?
I am following Rajat's answer and have done till the 2nd step.
But I am not getting the accessToken in the user's object. I neeed this token to get the user details from this api endpoint: "https://www.googleapis.com/oauth2/v1/userinfo?access_token="
Instead I am getting this user object from the fulfillment JSON: { locale: 'en-GB', userId: '15391770952311649498774' }
.
How can I get the access token?