Sign in with Apple using SwiftUI
summary
Shows how to add Sign in with Apple to a SwiftUI app by wrapping the ASP button in UIViewRepresentable, enabling the Xcode capability, and honoring Apple’s minimum button size (280×60). Explains storing one-time name/email in keychain storage to survive failed server registration, persisting Apple’s stable per-team user identifier in the database, and validating the returned identity token (JWT) server-side (Apple’s token expires in ~9 minutes). Notes simulator quirks, associated domains for web SSO, and a simple register vs. login flow.
AI-written summary · about
chapters (11)
- 0:00Start
- 0:15Simpler Authentication
- 1:09Gotchas
- 3:02Add Capabilities
- 4:52Wrap the View
- 6:28It's A Real View Now
- 7:10Request Scopes
- 16:10Login Changes
- 17:49Support Web Login
- 22:07No Window Needed
- 26:26Server Side








