I am using Auth0 in Android, when the user logs in I am getting an access token for my API created in auth0 dashboard and using that access token to call API, the only problem is I need logging user email how to get user info because I can’t call two audiences in webauth, how to achieve it without calling /userinfo endpoint.
WebAuthProvider.init(auth0)
.withScheme(“demo”)
.withParameters(map)
.withAudience(String.format(“http://api.mypgguru.com”, getString(R.string.com_auth0_domain)))
.withScope(“openid profile email offline_access”)
.start(this, webCallback);