Documentation Index
Fetch the complete documentation index at: https://docs.prism.byescaleira.com/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
PrismCapabilities provides type-safe wrappers around Apple’sLocalAuthentication and AuthenticationServices frameworks. Authenticate users with biometrics or Apple ID without touching LAContext or ASAuthorizationController directly.
Biometric Auth
Face ID, Touch ID, and Optic ID with policy selection, error mapping, and device capability detection.
Sign in with Apple
Full Apple ID flow — authorization requests, credential handling, and revocation detection.
Biometric Authentication
Device Capability
Query which biometric type is available on the current device:Check Biometric Type
Authentication Policies
Choose the level of fallback you want:| Policy | Behavior |
|---|---|
.deviceOwnerAuthenticationWithBiometrics | Biometrics only — no fallback |
.deviceOwnerAuthentication | Biometrics with device passcode fallback |
Authenticate
Biometric Authentication
Error Types
PrismBiometricError maps all common LAError codes:
| Error | Description |
|---|---|
.authenticationFailed | Invalid credentials provided |
.userCancel | User tapped Cancel |
.userFallback | User tapped the fallback button |
.systemCancel | System interrupted authentication |
.passcodeNotSet | No passcode configured on device |
.biometryNotAvailable | Hardware not available |
.biometryNotEnrolled | No biometric data enrolled |
.biometryLockout | Too many failed attempts |
Sign in with Apple
PrismSignInWithApple wraps ASAuthorizationController for Apple ID login:
Sign in with Apple
Credential State
Check if a previously authorized user is still valid:Check Credential State