
Authentication
Covers the full iOS authentication stack: Sign in with Apple with ASAuthorizationController, OAuth flows via ASWebAuthenticationSession, Password AutoFill integration, and biometric auth with LAContext. The real value is in the credential handling details, like the critical gotcha that email and fullName are only provided on first authorization, so you must cache them immediately. Includes proper credential state checking patterns for detecting revoked access, server-side identity token validation workflows, and the credentialRevokedNotification observer you need to handle mid-session logouts. The examples show both UIKit and SwiftUI implementations with actual delegate code, not just conceptual patterns. Use this when you're implementing any modern iOS login flow and need to handle Apple's specific quirks around credential persistence and validation.
- skills.sh installs
- 4.1K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill authentication --agent claude-codeInstalls into .claude/skills of the current project.
Files
Authentication
Implement authentication flows on iOS using the AuthenticationServices framework, including Sign in with Apple, passkeys, OAuth/third-party web auth, Password AutoFill, and biometric re-authentication.
Contents
- Sign in with Apple
- Credential Handling
- Credential State Checking
- Token Validation
- Existing Account Setup Flows
- Passkeys
- ASWebAuthenticationSession (OAuth)
- Password AutoFill Credentials
- Biometric Authentication
- Security Boundaries
- SwiftUI SignInWithAppleButton
- Common Mistakes
- Review Checklist
- References
Sign in with Apple
Add the "Sign in with Apple" capability in Xcode before using these APIs.
UIKit: ASAuthorizationController Setup
import AuthenticationServices
Sponsors
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Categories
- Backend & APIs, Security, Mobile Development
- First seen
- Apr 16, 2026
More from dpearson2699/swift-ios-skills
All 98- Background Processing4.1K
- Healthkit4K
- Vision Framework4K
- Coreml3.9K
- Core Bluetooth3.9K
- Core Motion3.8K
- Natural Language3.8K
- Speech Recognition3.8K
- Device Integrity3.8K
- Contacts Framework3.8K
- Alarmkit3.8K
- Core Nfc3.8K
- Swift Codable3.8K
- Tipkit3.8K
- App Clips3.8K
- Permissionkit3.7K
- Energykit3.7K
- Shareplay Activities3.7K
- Weatherkit3.6K
- Activitykit3.5K
- Cloudkit3.5K
- Photokit3.4K
- Mapkit3.4K
- Swiftui Webkit3.4K