Install any skill in seconds. Free to start, no credit card required.
Get Started Free →dpearson2699/authentication
Implement iOS authentication flows with AuthenticationServices and LocalAuthentication.
Passed 6 of 22 test cases with the skill, and 17 of 22 without it.
1 fixed17 passed either way1 still failing3 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
I'm building an iOS app using UIKit and need to implement authentication. Please write a Swift controller class that silently checks for existing Apple ID and password credentials when the user opens the app, and provides a method to launch the Sign in with Apple flow with full user name and email requested. Make sure to include error handling for canceled or non-interactive attempts and observe account revocation.
| Checked | Without skill | With skill |
|---|---|---|
| uses preferImmediatelyAvailableCredentials when performing existing credential checks | Missed | Passed |
| handles .notInteractive silently without displaying an error alert to the user | Missed | Passed |
| registers an observer for credentialRevokedNotification to handle account sign-out | Passed | Passed |
The instructions your model reads when the skill loads.
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.
Add the "Sign in with Apple" capability in Xcode before using these APIs.
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
test cases passed, vs 17 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.