diff --git a/packages/core/src/providers/apple.ts b/packages/core/src/providers/apple.ts index 439d063046..e4b30fefad 100644 --- a/packages/core/src/providers/apple.ts +++ b/packages/core/src/providers/apple.ts @@ -119,6 +119,13 @@ export interface AppleProfile extends Record { * ], * }) * ``` + * + * + * Apple requires the client secret to be a JWT. You can generate one using the following script: + * https://bal.so/apple-gen-secret + * + * Read more: [Creating the Client Secret +](https://developer.apple.com/documentation/sign_in_with_apple/generate_and_validate_tokens#3262048) * * ### Resources * @@ -140,16 +147,7 @@ export interface AppleProfile extends Record { * we might not pursue a resolution. You can ask for more help in [Discussions](https://authjs.dev/new/github-discussions). */ export default function Apple

( - options: Omit, "clientSecret"> & { - /** - * Apple requires the client secret to be a JWT. You can generate one using the following script: - * https://bal.so/apple-gen-secret - * - * Read more: [Creating the Client Secret -](https://developer.apple.com/documentation/sign_in_with_apple/generate_and_validate_tokens#3262048) - */ - clientSecret: string - } + options: OAuthUserConfig

, ): OAuthConfig

{ return { id: "apple", @@ -159,13 +157,8 @@ export default function Apple

( authorization: { params: { scope: "name email", response_mode: "form_post" }, }, - profile(profile) { - return { - id: profile.sub, - name: profile.name, - email: profile.email, - image: null, - } + client: { + token_endpoint_auth_method: "client_secret_post", }, style: { text: "#fff",