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?
You'll need to pass the
offline_access
scope andaudience
wherever you are logging the user in - I'm not positive usingpasswordlessWithEmail
but you'd want to leveragewithScope
andwithAudience
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 theAuthenticationClient
, to grab profile information for example.