Skip to main content
These docs are for our new Kotlin Multiplatform SDK, which is in Public beta. If you are instead looking for the stable version, please see stytch-ios and the usage docs here.
The Stytch SDKs provide methods that communicate directly with the Stytch API, allowing you to easily authenticate your users without adding extra endpoints to your backend. The Stytch iOS Consumer SDK is a headless Kotlin Multiplatform library distributed as a Swift package. It provides a Swift-native async/await API for all Stytch consumer authentication methods, with idiomatic Swift wrappers generated by SKIE.

Swift package

StytchConsumerSDK

iOS Swift package for the Stytch Consumer SDK

Authentication methods

The StytchConsumer client exposes the following namespaces:
NamespaceDescription
otpOne-time passcodes via SMS, email, or WhatsApp
magicLinksEmail magic link authentication
passwordsPassword-based authentication
oauthOAuth flows (Google, Apple, and others)
passkeysWebAuthn / passkey authentication
biometricsBiometric authentication (Face ID / Touch ID)
totpTime-based one-time passcode (authenticator app)
cryptoCrypto wallet authentication
sessionSession management
userUser account management
dfpDevice fingerprinting

Compatibility and requirements

  • Minimum iOS version: 15.0
  • Language: Swift (async/await API)
  • Distribution: Swift Package Manager