What problem does it solve?
This Skill helps you implement iOS authentication flows correctly and securely, especially for Sign in with Apple, OAuth web auth, credential state checks, token validation, and biometric re-auth.
Core Features & Use Cases
- Sign in with Apple (ASAuthorization) integration*: Implement the authorization controller, handle Apple ID credentials, and manage first-auth vs subsequent-auth data (email/fullName availability rules).
- Credential state checking & revocation handling: Check credential state on app launch and respond to revocation notifications by signing out and clearing local state.
- Server-side identity token validation guidance: Validate JWT identity tokens using Apple JWKS rules (iss/aud/exp) rather than trusting tokens client-side.
- OAuth using ASWebAuthenticationSession: Run third-party login flows via system web auth (no WKWebView), extract authorization codes, and exchange them for tokens.
- Password AutoFill + biometrics support: Offer saved credentials using ASAuthorizationPasswordProvider with correct textContentType setup, and protect sensitive storage with LAContext.
Quick Start
Use the authentication skill to design your Sign in with Apple + OAuth login architecture for iOS by covering credential state, identityToken handling, and biometric/keychain integration end-to-end.