Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to the accessToken #185

Open
f10l opened this issue Feb 17, 2020 · 0 comments
Open

Access to the accessToken #185

f10l opened this issue Feb 17, 2020 · 0 comments

Comments

@f10l
Copy link

f10l commented Feb 17, 2020

Hello,

I am trying to use the new graphql API from an Android client.
My target was to use the android sdk to obtain the access token and do not need to query for it manually.
I tried to stay close to the javascript browser example provided in https://docs.mongodb.com/stitch/graphql/connect-from-a-client-application/
The accessToken is simply available in client.auth.activeUserAuthInfo.
For the android sdk this seems not to be the case. I have access to the id, deviceId and so on, but not to the activeUserAuthInfo or to the access token.

Is there any way to get the access token from the android sdk? It seems to be present in the very same way as in js in the AuthInfo class.

Used sdk version: 4.7.0

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

No branches or pull requests

1 participant