I am trying to login to android app using auth0 and access my API created in auth0 dash dashboard after success full login i am using access token to post to my api endpoint but getting unauthorized Error: jwt audience invalid.
my api identifier is correct but still getting error.
My code is:
auth0 = new Auth0(this);
auth0.setLoggingEnabled(true);
auth0.setOIDCConformant(true);
WebAuthProvider.init(auth0)
.withScheme(“demo”)
withAudience(“http://api.mypgguru.com”)
withParameters(map)
.withScope(" openid profile& email offline_access read:current_user update:current_user_metadata")
.start(this, webCallback);