Release: v3.0.0
What's Changed
✨ New Functionality
Auth Proxy Integration
- Added Auth Proxy support
- AddedloginWithPasskey(),signUpWithPasskey()for direct passkey authentication
- AddedinitOtp(),verifyOtp(),loginWithOtp(),signUpWithOtp(),completeOtp()for email/SMS authentication
- AddedloginWithOAuth(),signUpWithOAuth(),completeOAuth()for OAuth flows
- Added convenience handlershandleGoogleOAuth(),handleAppleOAuth(),handleDiscordOAuth(),handleXOauth()for specific OAuth providers
Secure Key Storage
- TurnkeySwift session keys now stored in Secure Enclave by default (with Keychain fallback)
- Added
SecureEnclaveStamperfor hardware-backed key storage (keys never leave Secure Enclave) - Added
SecureStorageStamperfor Keychain-backed key storage as fallback
State Management
- Added
@Publishedproperties forsession,user, andwalletsthat automatically update throughout the application lifecycle - State automatically refreshed after authentication and relevant operations
- Observable in SwiftUI via
@EnvironmentObject
Type System & Client
- New
TurnkeyTypespackage with smarter, easier-to-use types generated from Turnkey API - Updated
TurnkeyHttpclient to use the new type system for improved type safety and developer experience