mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 12:27:44 +00:00
docs: fix apple provider
This commit is contained in:
@@ -15,17 +15,17 @@ description: Apple
|
|||||||
</Step>
|
</Step>
|
||||||
<Step>
|
<Step>
|
||||||
### Configure the provider
|
### Configure the provider
|
||||||
To configure the provider, you need to import the provider and pass it to the `socialProviders` option of the auth instance.
|
To configure the provider, you need to add it to the `socialProviders` option of the auth instance.
|
||||||
|
|
||||||
```ts title="auth.ts"
|
```ts title="auth.ts"
|
||||||
import { betterAuth } from "better-auth"
|
import { betterAuth } from "better-auth"
|
||||||
|
|
||||||
export const auth = betterAuth({
|
export const auth = betterAuth({
|
||||||
socialProviders: { // [!code highlight]
|
socialProviders: { // [!code highlight]
|
||||||
apple({ // [!code highlight]
|
apple: { // [!code highlight]
|
||||||
clientId: process.env.APPLE_CLIENT_ID as string, // [!code highlight]
|
clientId: process.env.APPLE_CLIENT_ID as string, // [!code highlight]
|
||||||
clientSecret: process.env.APPLE_CLIENT_SECRET as string, // [!code highlight]
|
clientSecret: process.env.APPLE_CLIENT_SECRET as string, // [!code highlight]
|
||||||
}), // [!code highlight]
|
}, // [!code highlight]
|
||||||
}, // [!code highlight]
|
}, // [!code highlight]
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user