We have two login mechanisms. One is Lock for web, which works fine. The other is Lock for android. With this latter login system, the access token we are provided with does not seem to validate, in that our API throws a 401 error.
The code that DOES work in web:
this.lock = new Auth0Lock(
'xxxxx',
'shoutapp.eu.auth0.com',
this.lockOptions
);
this.lock.on("authenticated", $.proxy(this.onLockAuthenticated, this));
...
localStorage.setItem('accessToken', authResult.accessToken);
The code that DOES NOT work in Android:
Auth0 auth0 = new Auth0(getString(R.string.com_auth0_client_id), getString(R.string.com_auth0_domain));
auth0.setOIDCConformant(true);
lock = Lock.newBuilder(auth0, callback)
.withAudience("https://api.shoutapp.io/")
.build(this);
startActivity(lock.newIntent(this));