Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

How to get the access token for a linked account? #15

Open
ryanleung96 opened this issue Nov 4, 2020 · 3 comments
Open

How to get the access token for a linked account? #15

ryanleung96 opened this issue Nov 4, 2020 · 3 comments

Comments

@ryanleung96
Copy link

From the user schema, the access token field is not listed. How I retrieve the access token issued from my OAuth2 provider for the current user?

@Fleker
Copy link
Member

Fleker commented Nov 4, 2020

It should appear in the Authorization request header.

@ryanleung96
Copy link
Author

It should appear in the Authorization request header.

I don't get it. What I referring to is after the account linking has completed, how my fulfilment server gets the token from Google Assistant?

The legacy Java Actions SDK has the getAccessToken method to retrieve the token from User object in fulfilment request.

@shivan
Copy link

shivan commented Feb 9, 2021

I use conv.user.params.bearerToken, as this contains the token.
For me this works great.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants