docs: fix apple provider

This commit is contained in:
Bereket Engida
2024-10-10 17:10:26 +03:00
parent 36ae5303d9
commit d16af1e962

View File

@@ -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]
})
```