Xgenious/ docs
Products
Get support
Only works for v1.0.7 and after
  1. You will need to add apple sign in for your app in app store.

  2. Open project/ios folder in XCode.

  3. Click on “Runner“-> “Signing & Capabilities“-> “+ Capability“. Select “Sign in with Apple” and enter.

ScreenshotScreenshot

  1. Go to https://developer.apple.com/account/resources/authkeys/list and click on plus icon.

ScreenshotScreenshot

  1. Provide a name, check the Sign in with apple apple option then click “Configure“. In “Configure” select your app id then click “Save“. Then Click “Continue” in the register a new key page.

ScreenshotScreenshot

ScreenshotScreenshot

  1. Click on the key you just created

ScreenshotScreenshot

  1. We will need the key id later

ScreenshotScreenshot

  1. Go to https://jwt.io provide the info according to below then copy the encoded key from the left side.
In Header: 
{
"alg": "HS256",
"typ": "JWT",
"kid": "Your Key ID"
}

In Payload:
{
"iss": "Your 10-character Team ID associated with your developer account",
"iat": 20231011345,
"exp": 31536000,
"aud": "https://appleid.apple.com",
"sub": "App ID"
}

in iat: your project creation date in UTC
in exp: Expiration date for this JWT in seconds. Exp: if its six months then 15777000 seconds

ScreenshotScreenshot

  1. Open project/lib/customizations.dart and provide the JWT in as the client secret.

ScreenshotScreenshot

  1. You should be able to use Apple Sign-In now and on account deletion the user's apple id should get revoked.
Still stuck?
Our support team is ready to help you get set up.
Get support