You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/docs/(guides)/concepts/auth-providers/apple.mdx
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,23 @@ You will need to create an Apple Developer account, and generate an Apple Servic
67
67
</Step>
68
68
</Steps>
69
69
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
+
70
87
### Need More Help?
71
88
72
89
- Check the [Sign in with Apple Documentation](https://developer.apple.com/sign-in-with-apple/get-started/)
0 commit comments