Skip to content

Latest commit

 

History

History
159 lines (92 loc) · 4.34 KB

AppleRequestResponse.md

File metadata and controls

159 lines (92 loc) · 4.34 KB

Interface: AppleRequestResponse

A response from performRequest(requestOptions).

Table of contents

Properties

Properties

authorizationCode

authorizationCode: null | string

A short-lived, one-time valid token that can provides proof of authorization to the server component of your app.

The authorization code is bound to the specific transaction using the state attribute passed in the authorization request. The server component of your app can validate the code using the Apple identity service endpoint.

Defined in

index.d.ts:404


authorizedScopes

authorizedScopes: AppleRequestScope[]

This value will contain an array of scopes for which the user provided authorization. Note that these may contain a subset of the requested scopes. You should query this value to identify which scopes were returned as it may be different from ones you requested.

See @{AppleRealUserStatus}

Defined in

index.d.ts:369


email

email: null | string

An optional email shared by the user.

This field is populated with a value that the user authorized.

Defined in

index.d.ts:389


fullName

fullName: null | AppleRequestResponseFullName

An optional full name shared by the user.

This field is populated with a value that the user authorized.

See @{AppleRequestResponseFullName}

Defined in

index.d.ts:353


identityToken

identityToken: null | string

A JSON Web Token (JWT) used to communicate information about the identity of the user in a secure way to the app.

The ID token contains the following information signed by Apple's identity service:

  • Issuer Identifier
  • Subject Identifier
  • Audience
  • Expiry Time
  • Issuance Time

Defined in

index.d.ts:382


nonce

nonce: string

Nonce that was passed to the identity provider. If none was passed to the request, one will have automatically been created and available to be read from this property, unless nonceEnabled is false. NOTE: This value will be SHA256 hashed before sending to Apple.

Defined in

index.d.ts:334


realUserStatus

realUserStatus: AppleRealUserStatus

Check this property for a hint as to whether the current user is a "real user".

See @{AppleRealUserStatus}

Defined in

index.d.ts:360


state

state: null | string

A copy of the state value that was passed to the initial request.

Defined in

index.d.ts:394


user

user: string

An opaque user ID associated with the AppleID used for the sign in. This identifier will be stable across the 'developer team', it can later be used as an input to

{appleauthrequest} to request user contact information.

The identifier will remain stable as long as the user is connected with the requesting client. The value may change upon user disconnecting from the identity provider.

Defined in

index.d.ts:344