Authorized Party (azp) claim mismatch in the ID token

I’m getting “Authorized Party (azp) claim mismatch in the ID token”.

Looking in the SDK’s, it seems to be because the mobile app token seems to be returning two 'aud’s, the API Audience, and the ‘{domain}//userinfo’ endpoint.

AUTH0_AUDIENCE = My application Client ID.

Mobile App Code

                .start {
                    switch $0 {
                    case .failure(let error):
                        // Handle the error
                        print("Error: \(error)")
                    case .success(let credentials):


$token_issuer  = 'https://'.env('AUTH0_DOMAIN').'/';
            $jwks_fetcher = new JWKFetcher();
            $jwks        = $jwks_fetcher->getKeys($token_issuer.'.well-known/jwks.json');
            $signature_verifier = new AsymmetricVerifier($jwks);
            $token_verifier = new IdTokenVerifier(
            try {
              $decoded_token = $token_verifier->verify($accessToken);
            } catch (\Exception $e) {
              return null;

Hi there @ryan5 and welcome to the Auth0 Community!

Are you sure in your mobile app code it’s picking up the AUTH0_AUDIENCE as it does in your .env file? Is there any additional details you can share with us on this front? Thanks in advance!


For anyone coming across the same issue, I’ve managed to debug with the help of @joshcanhelp -

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.