Builds iOS authentication flows using AuthenticationServices and LocalAuthentication. Covers Sign in with Apple, passkeys/WebAuthn, OAuth web sessions, Password AutoFill, identity-token validation, and biometric reauthentication for Swift/iOS apps.
Ships in all-ios-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Implement authentication flows on iOS using AuthenticationServices and LocalAuthentication, including Sign in with Apple, passkeys (WebAuthn), OAuth web sessions, Password AutoFill, and biometric verification. Targets Swift 6.4 / iOS 26+.
Add the Sign in with Apple capability in Xcode.
In SwiftUI, use SignInWithAppleButton:
import SwiftUI
import AuthenticationServices
struct LoginView: View {
var body: some View {
SignInWithAppleButton(.signIn) { request in
request.requestedScopes = [.fullName, .email]
} onCompletion: { result in
switch result {
case .success(let authorization):
if let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential {
let userIdentifier = appleIDCredential.user
let identityToken = appleIDCredential.identityToken
// Forward identityToken to backend for JWT validation
}
case .failure(let error):
// Handle authorization error
break
}
}
.signInWithAppleButtonStyle(.black)
.frame(height: 50)
}
}
Check credential state on app launch using ASAuthorizationAppleIDProvider().getCredentialState(forUserID:).
Authenticate without passwords using hardware-backed credentials synced via iCloud Keychain:
let provider = ASAuthorizationPlatformPublicKeyCredentialProvider(relyingPartyIdentifier: "example.com")
let request = provider.createCredentialAssertionRequest(challenge: serverChallenge)
let controller = ASAuthorizationController(authorizationRequests: [request])
controller.delegate = self
controller.presentationContextProvider = self
controller.performRequests()
Configure Associated Domains with webcredentials:example.com and host /.well-known/apple-app-site-association.
For third-party OAuth providers, use ASWebAuthenticationSession:
let session = ASWebAuthenticationSession(
url: authURL,
callbackURLScheme: "myapp"
) { callbackURL, error in
guard let callbackURL, error == nil else { return }
// Extract authorization code from callbackURL
}
session.presentationContextProvider = self
session.prefersEphemeralWebBrowserSession = false // true prevents shared cookie login
session.start()
Support keychain password entry alongside passkeys via ASAuthorizationPasswordProvider:
let passwordRequest = ASAuthorizationPasswordProvider().createCredentialRequest()
let controller = ASAuthorizationController(authorizationRequests: [passkeyRequest, passwordRequest])
Verify device owner identity using Face ID / Touch ID:
import LocalAuthentication
func authenticateUser() async throws {
let context = LAContext()
var error: NSError?
guard context.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: &error) else {
throw AuthError.biometricsUnavailable
}
let success = try await context.evaluatePolicy(
.deviceOwnerAuthenticationWithBiometrics,
localizedReason: "Unlock your account"
)
guard success else { throw AuthError.failed }
}
identityToken signatures against Apple's public keys on your server.webcredentials:domain in Associated Domains.evaluatePolicy without pre-checking triggers immediate runtime exceptions on unsupported hardware.getCredentialState(forUserID:) on launchwebcredentials: for passkeysASWebAuthenticationSession instance retained until completionNSFaceIDUsageDescription included in Info.plist for biometric authWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ios-authentication, sign-in-with-apple, webauthn, passkeys, oauth, biometrics
/all-ios-skills:authenticationfrom all-ios-skills
npx claudepluginhub thienqo/ios-skills --plugin all-ios-skills95 skills in this plugin
/accessorysetupkitDiscover and configure Bluetooth and Wi-Fi accessories using AccessorySetupKit. Use when presenting a privacy-preserving accessory picker, defining discovery descriptors for BLE or Wi-Fi devices, handling accessory session events, migrating from CoreBluetooth permission-based scanning, or setting up accessories without requiring broad Bluetooth permissions./activitykitBuild or review Live Activities and Dynamic Island experiences with ActivityKit, including lifecycle, layouts, push updates, and scheduled delivery. Use for time-sensitive Lock Screen or Dynamic Island state; route ordinary widgets to widgetkit./adattributionkitMeasure ad effectiveness with privacy-preserving attribution using AdAttributionKit. Use when registering ad impressions, handling attribution postbacks, updating conversion values, implementing re-engagement attribution, configuring publisher or advertiser apps, or replacing SKAdNetwork with AdAttributionKit for ad measurement.Other plugins' skills for the same job