Skip to content

Release: v3.0.0

Choose a tag to compare

@moeodeh3 moeodeh3 released this 05 Nov 22:11
· 23 commits to main since this release
d2bf98a

What's Changed

✨ New Functionality

Auth Proxy Integration

  • Added Auth Proxy support
    - Added loginWithPasskey(), signUpWithPasskey() for direct passkey authentication
    - Added initOtp(), verifyOtp(), loginWithOtp(), signUpWithOtp(), completeOtp() for email/SMS authentication
    - Added loginWithOAuth(), signUpWithOAuth(), completeOAuth() for OAuth flows
    - Added convenience handlers handleGoogleOAuth(), handleAppleOAuth(), handleDiscordOAuth(), handleXOauth() for specific OAuth providers

Secure Key Storage

  • TurnkeySwift session keys now stored in Secure Enclave by default (with Keychain fallback)
  • Added SecureEnclaveStamper for hardware-backed key storage (keys never leave Secure Enclave)
  • Added SecureStorageStamper for Keychain-backed key storage as fallback

State Management

  • Added @Published properties for session, user, and wallets that automatically update throughout the application lifecycle
  • State automatically refreshed after authentication and relevant operations
  • Observable in SwiftUI via @EnvironmentObject

Type System & Client

  • New TurnkeyTypes package with smarter, easier-to-use types generated from Turnkey API
  • Updated TurnkeyHttp client to use the new type system for improved type safety and developer experience