Reputation: 539
When authorizing via Android SDK AuthenticationAPIClient using passwordlessWithEmail in Credentials refresh token == null.
I read that in the article that you need to set offline_access for api and send a link to the audience on api. But AuthenticationAPIClient doesn't have anywhere in the audience field methods.
How to set the audience parameter?
Upvotes: 0
Views: 224
Reputation: 11
You'll need to pass the offline_access
scope and audience
wherever you are logging the user in - I'm not positive using passwordlessWithEmail
but you'd want to leverage withScope
and withAudience
if using WebAuthProvider (Initiates Universal Login). The audience value is just the "API identifier" in your Auth0 dashboard - In the API settings be sure you've allowed offline access. The access token you receive from the login flow can then be used in the AuthenticationClient
, to grab profile information for example.
Upvotes: 0