Hello,
I’m using the latest Android SDK to login:
Auth0 auth0 = new Auth0(this);
auth0.setOIDCConformant(true);
WebAuthProvider.login(auth0)
.withScope("offline_access")
.withScheme(getString(R.string.com_auth0_scheme))
.withAudience(getString(R.string.com_auth0_audience))
.start(this, new AuthCallback() {
@Override
public void onFailure(@NonNull final Dialog dialog) { }
@Override
public void onFailure(final AuthenticationException e) {
// "Could not verify the ID token"
}
@Override
public void onSuccess(@NonNull final Credentials credentials) { }
});
If I comment out the .withScope(“offline_access”) line, I get the access token and id token, and the login flow works fine. With “offline_access” the login flow seems to work in the browser, but I get the “Could not verify the ID token” AuthenticationException in the callback.
How can I get a proper refresh token?
Thanks,
Robert