Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/content/docs/(guides)/concepts/auth-providers/apple.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,23 @@ You will need to create an Apple Developer account, and generate an Apple Servic
</Step>
</Steps>

## Native App Configuration (iOS/macOS)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Citation: PR #1130 adds Apple Native Sign In for iOS/macOS apps. The backend verifies Apple identity tokens against configured Bundle IDs (see apps/backend/src/app/api/latest/auth/oauth/callback/apple/native/route.tsx and the appleBundles config in apps/backend/src/lib/projects.tsx). The PR description states: "To use the Apple native sign in, users will have to...update the Stack-Auth Authentication Methods dashboard apple modal with the relevant fields."
View source


Native iOS and macOS apps using the Stack Auth Swift SDK require Bundle ID configuration in addition to the web OAuth setup above. Native apps use Apple's native Sign in with Apple flow (`ASAuthorizationController`) instead of web-based OAuth.

<Info>
Bundle IDs are only required for native iOS/macOS apps. Web applications only need the Service ID configuration described above.
</Info>

### Add Your Bundle IDs

1. On the Stack Auth dashboard, navigate to **Auth Methods** and select your Apple provider.
2. In the Apple configuration modal, add your app's **Bundle ID** (e.g., `com.yourdomain.app`). This is the same Bundle ID from your App ID in Apple Developer Portal (Step 1 above).
3. If you have multiple apps (e.g., separate iOS and macOS apps), add all their Bundle IDs.
4. Click **Save**.

Your native app can now use `signInWithOAuth(provider: "apple")` from the Swift SDK.

### Need More Help?

- Check the [Sign in with Apple Documentation](https://developer.apple.com/sign-in-with-apple/get-started/)
Expand Down
Loading