← ClaudeAtlas

authenticationlisted

Implement iOS authentication flows with AuthenticationServices and LocalAuthentication. Use when building Sign in with Apple, passkey/WebAuthn registration or sign-in with ASAuthorizationPlatformPublicKeyCredentialProvider, ASAuthorizationController credential state and revocation handling, ASWebAuthenticationSession OAuth or third-party login, Password AutoFill, identity-token server validation, or local biometric re-authentication with LAContext.
thiennc-tesoglobal/ios-skills · ★ 3 · API & Backend · score 66
Install: claude install-skill thiennc-tesoglobal/ios-skills
# 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](#sign-in-with-apple) - [Credential Handling](#credential-handling) - [Credential State Checking](#credential-state-checking) - [Token Validation](#token-validation) - [Existing Account Setup Flows](#existing-account-setup-flows) - [Passkeys](#passkeys) - [ASWebAuthenticationSession (OAuth)](#aswebauthenticationsession-oauth) - [Password AutoFill Credentials](#password-autofill-credentials) - [Biometric Authentication](#biometric-authentication) - [Security Boundaries](#security-boundaries) - [SwiftUI SignInWithAppleButton](#swiftui-signinwithapplebutton) - [Common Mistakes](#common-mistakes) - [Review Checklist](#review-checklist) - [References](#references) ## Sign in with Apple Add the "Sign in with Apple" capability in Xcode before using these APIs. ### UIKit: ASAuthorizationController Setup ```swift import AuthenticationServices final class LoginViewController: UIViewController { func startSignInWithApple() { let provider = ASAuthorizationAppleIDProvider() let request = provider.createRequest() request.requestedScopes = [.fullName, .email] let controller = ASAuthorizationController(authorizationRequests: [request]) controller.delegate = self controller.presentati