Add Apple login provider #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The app currently supports Google and GitHub login via Better Auth. Adding Apple expands the login options, especially for iOS users.
What to do
Add Apple as a social login provider in Better Auth.
Files to change
apps/api/src/lib/auth.ts— addappleto thesocialProvidersconfig in thebetterAuth()call. RequiresclientIdandclientSecretfrom env vars..env.example— addAPPLE_CLIENT_IDandAPPLE_CLIENT_SECRETplaceholders..envon VPS — add Apple credentials once obtained.apps/web/src/routes/login.tsx— add a 'Continue with Apple' button callingsignIn.social({ provider: 'apple', callbackURL: window.location.origin }).Acceptance criteria
Prerequisites
Notes
Better Auth docs: https://www.better-auth.com/docs/authentication/social-sign-in
Apple Sign in with Apple requires a paid Apple Developer account ($99/year). Evaluate whether the user base justifies this cost before starting.