iOS · Example Payload

Sign In With Apple Token Example

iOSAppleMobileApp StorePush NotificationsIn-App PurchasesSubscriptionsAuthenticationWalletDeveloper Platform

Sign In With Apple Token Example is an example object payload from iOS, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponsedecoded_id_token

Example Payload

Raw ↑
{
  "request": {
    "method": "POST",
    "url": "https://appleid.apple.com/auth/token",
    "headers": {
      "Content-Type": "application/x-www-form-urlencoded"
    },
    "body_form": {
      "client_id": "com.naftiko.signin.service",
      "client_secret": "eyJhbGciOiJFUzI1NiIsImtpZCI6IkFCQ0RFRkdISUoifQ...redacted...client_secret_jwt",
      "code": "c1f6c4f8c1f6c4f8c1f6c4f8c1f6c4f8.0.rsza.AbCdEfGhIjKlMnOpQrStUvWxYz",
      "grant_type": "authorization_code",
      "redirect_uri": "https://signin.naftiko.com/callback"
    }
  },
  "response": {
    "status": 200,
    "headers": { "Content-Type": "application/json" },
    "body": {
      "access_token": "a.b.c",
      "token_type": "Bearer",
      "expires_in": 3600,
      "refresh_token": "r.s.t",
      "id_token": "eyJraWQiOiJBYmNkRWZHaCIsImFsZyI6IlJTMjU2In0...redacted...id_token_jwt"
    }
  },
  "decoded_id_token": {
    "iss": "https://appleid.apple.com",
    "aud": "com.naftiko.signin.service",
    "sub": "001234.5b3a3bdf9c0b4f049c1471cae1cd1d8d.0001",
    "iat": 1779556800,
    "exp": 1779560400,
    "email": "naftiko-user@privaterelay.appleid.com",
    "email_verified": true,
    "is_private_email": true,
    "real_user_status": 2
  }
}