mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 12:27:43 +00:00
docs: fix apple provider
This commit is contained in:
@@ -15,17 +15,17 @@ description: Apple
|
||||
</Step>
|
||||
<Step>
|
||||
### 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"
|
||||
import { betterAuth } from "better-auth"
|
||||
|
||||
export const auth = betterAuth({
|
||||
socialProviders: { // [!code highlight]
|
||||
apple({ // [!code highlight]
|
||||
apple: { // [!code highlight]
|
||||
clientId: process.env.APPLE_CLIENT_ID as string, // [!code highlight]
|
||||
clientSecret: process.env.APPLE_CLIENT_SECRET as string, // [!code highlight]
|
||||
}), // [!code highlight]
|
||||
}, // [!code highlight]
|
||||
}, // [!code highlight]
|
||||
})
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user