[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/auth](../README) / AppleOAuth2Config

# Interface: AppleOAuth2Config

Defined in: [auth/src/social/types.ts:62](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/auth/src/social/types.ts#L62)

Apple-specific config.  Supply either `clientSecret` (a pre-signed JWT) or
the three raw Apple credentials — the driver will sign the JWT automatically
using the Web Crypto API (no external dependency needed).

## Extends

- [`OAuth2Config`](OAuth2Config)

## Properties

### clientId

> **clientId**: `string`

Defined in: [auth/src/social/types.ts:48](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/auth/src/social/types.ts#L48)

OAuth2 client / application ID issued by the provider.

#### Inherited from

[`OAuth2Config`](OAuth2Config).[`clientId`](OAuth2Config#clientid)

***

### clientSecret?

> `optional` **clientSecret?**: `string`

Defined in: [auth/src/social/types.ts:50](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/auth/src/social/types.ts#L50)

Static client secret, or omit for Apple and supply teamId/keyId/privateKey instead.

#### Inherited from

[`OAuth2Config`](OAuth2Config).[`clientSecret`](OAuth2Config#clientsecret)

***

### redirectUrl

> **redirectUrl**: `string`

Defined in: [auth/src/social/types.ts:52](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/auth/src/social/types.ts#L52)

Fixed callback URL, matching the one registered with the provider.

#### Inherited from

[`OAuth2Config`](OAuth2Config).[`redirectUrl`](OAuth2Config#redirecturl)

***

### scopes?

> `optional` **scopes?**: `string`[]

Defined in: [auth/src/social/types.ts:54](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/auth/src/social/types.ts#L54)

Scopes to request; when omitted the driver's `defaultScopes()` are used.

#### Inherited from

[`OAuth2Config`](OAuth2Config).[`scopes`](OAuth2Config#scopes)

***

### teamId?

> `optional` **teamId?**: `string`

Defined in: [auth/src/social/types.ts:64](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/auth/src/social/types.ts#L64)

Your Apple Developer Team ID (10-character string).

***

### keyId?

> `optional` **keyId?**: `string`

Defined in: [auth/src/social/types.ts:66](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/auth/src/social/types.ts#L66)

The Key ID of the private key created in App Store Connect.

***

### privateKey?

> `optional` **privateKey?**: `string`

Defined in: [auth/src/social/types.ts:71](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/auth/src/social/types.ts#L71)

PEM-encoded PKCS#8 ES256 private key downloaded from App Store Connect.
Include the full -----BEGIN PRIVATE KEY----- / -----END PRIVATE KEY----- block.
