Skip to content

Commit d95d562

Browse files
Document Apple Bundle IDs for native iOS/macOS app sign-in
1 parent d3fb974 commit d95d562

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

  • docs/content/docs/(guides)/concepts/auth-providers

docs/content/docs/(guides)/concepts/auth-providers/apple.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,23 @@ You will need to create an Apple Developer account, and generate an Apple Servic
6767
</Step>
6868
</Steps>
6969

70+
## Native App Configuration (iOS/macOS)
71+
72+
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.
73+
74+
<Info>
75+
Bundle IDs are only required for native iOS/macOS apps. Web applications only need the Service ID configuration described above.
76+
</Info>
77+
78+
### Add Your Bundle IDs
79+
80+
1. On the Stack Auth dashboard, navigate to **Auth Methods** and select your Apple provider.
81+
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).
82+
3. If you have multiple apps (e.g., separate iOS and macOS apps), add all their Bundle IDs.
83+
4. Click **Save**.
84+
85+
Your native app can now use `signInWithOAuth(provider: "apple")` from the Swift SDK.
86+
7087
### Need More Help?
7188

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

0 commit comments

Comments
 (0)