Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question About LinkWithAppleAsync

Discussion in 'Authentication' started by Radiogaga84, Nov 16, 2022.

  1. Radiogaga84

    Radiogaga84

    Joined:
    Jun 15, 2013
    Posts:
    1
    I'm implementing 'Apple Sign In' with Unity game service.


    But When I call
    Code (CSharp):
    1. await AuthenticationService.Instance.LinkWithAppleAsync(idToken);
    after sigining in apple, the response is like that.
    Request completed with error: {"title":"PERMISSION_DENIED","detail":"invalid audience","details":[],"status":401}

    What is 'invalid audience' ???
    There is no document about this.

    I registered provide too.
    upload_2022-11-16_14-58-18.png

    Does anyone know about 'invalid audience' ??
    Please help me.
     
  2. mahdik_unity

    mahdik_unity

    Unity Technologies

    Joined:
    Sep 16, 2021
    Posts:
    15
    Hello @Radiogaga84,

    Looks like you're using the wrong app ID from Apple, the id should look like com.company.examplegame