docs(feat): added apple sign in JWT generation in docs (#2453)

* docs: Add guide for Sign In with Apple

* docs-feat: add apple JWT generator

* fix-lint: ran lint:fix to fix CI test

* chore: refactor to remove jose

* update docs

* chore: lock file

* fix test

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
This commit is contained in:
Abdulrahman
2025-07-08 03:21:10 +03:00
committed by GitHub
parent daa6531301
commit cce6c2d74f
6 changed files with 261 additions and 6 deletions

View File

@@ -54,10 +54,9 @@ description: Apple provider setup and usage.
6. **Generate the Client Secret (JWT):**
Apple requires a JSON Web Token (JWT) to be generated dynamically using the downloaded `.p8` key, the Key ID, and your Team ID. This JWT serves as your `clientSecret`.
You can use the guide below from Apple's documentation to understand how to generate this client secret:
<Link href="https://developer.apple.com/documentation/accountorganizationaldatasharing/creating-a-client-secret">
Creating a client secret
</Link>
You can use the guide below from [Apple's documentation](https://developer.apple.com/documentation/accountorganizationaldatasharing/creating-a-client-secret) to understand how to generate this client secret. You can also use our built in generator [below](#generate-apple-client-secret-jwt) to generate the client secret JWT required for 'Sign in with Apple'.
</Step>
<Step>
### Configure the provider
@@ -126,3 +125,7 @@ await authClient.signIn.social({
}
})
```
## Generate Apple Client Secret (JWT)
<GenerateAppleJwt />