AppleAdapter

new AppleAdapter(options, authData)

Parse Server Configuration

To configure Parse Server for Apple authentication, use the following structure:

{
  "auth": {
    "apple": {
      "clientId": "12345"
    }
  }
}

Expected authData from the Client

The adapter expects the client to provide the following authData payload:

  • authData.id (string, required): The user ID obtained from Apple.
  • authData.token (string, required): The token obtained from Apple.

Parse Server stores the required authentication data in the database.

Example AuthData from Apple

{
  "apple": {
    "id": "1234567",
    "token": "xxxxx.yyyyy.zzzzz"
  }
}
Parameters:
NameTypeDescription
optionsObject

Configuration options for the adapter.

Properties
NameTypeDescription
clientIdstring

Your Apple App ID.

authDataObject

The authentication data provided by the client.

Properties
NameTypeDescription
idstring

The user ID obtained from Apple.

tokenstring

The token obtained from Apple.