Expo-Apple Authentication

Please provide the following:

  1. SDK Version: expo 33.0.0
  2. Platforms(Android/iOS/web/all): iOS

Hello, everyone.
I dont have rich experience in Expo and React native. So I dont know well if my question contains too basic or simple. :frowning:

I am developing one app using Expo and this needs Apple Authentication.
So I followed this reference and used the same code. But when I enter sign in page, I can see this error on both real device and iOS emulator.

If someone faced this issue before or already implemented Apple Authentication using Expo, please help me. Thank you for reading my article. :slight_smile:

hi! you need to update to a newer sdk version. apple authentication is only available for expo sdk 35 or higher. see https://docs.expo.io/versions/latest/workflow/upgrading-expo-sdk-walkthrough/ for information on how to upgrade

1 Like

Thank you. Let me update and try again.

Thank you very much. After upgrade version to 35, I can see this api is working.
So now I can see AppleAuthenticationCredentialState is AUTHORIZED.
Sorry but I have another question. After that how can I get user`s info such as email address and full name? Are there any APIs?

I tried like this;

    let urlBody = `code=${authorizationCode}&client_id=${clientId}&grant_type=authorization_code`;

    const res = await fetch(`https://appleid.apple.com/auth/token`, {
      method: 'POST',
      body: urlBody,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded',

But the result was ‘invalid_client’. Hope to help me. Thanks again. :slight_smile:

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