Skip to content

Access to the accessToken #185

@f10l

Description

@f10l

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions