What problem does it solve?
Authentication implementations on iOS often break in subtle ways (missing capabilities, incorrect credential handling, stale sessions, or unvalidated tokens), leading to login failures or insecure account access.
Core Features & Use Cases
- Sign in with Apple (ASAuthorizationAppleIDProvider): Handle the full Sign in with Apple flow, including identity token and authorization code delivery for server validation.
- Credential state checking & revocation handling: Detect whether an Apple credential is authorized, revoked, or transferred and update the app session accordingly.
- OAuth via ASWebAuthenticationSession: Perform third-party authentication using a system browser flow instead of an embedded web view.
- Password AutoFill integration: Offer saved Keychain credentials using ASPasswordCredential with proper textContentType configuration.
- Biometric authentication with LAContext: Gate sensitive actions and protect Keychain access using Face ID / Touch ID prompts.
Quick Start
Use the authentication skill to implement Sign in with Apple and OAuth login flows on iOS by capturing ASAuthorizationAppleIDCredential tokens and verifying credential state on app launch.