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.
Swift package
StytchConsumerSDK
iOS Swift package for the Stytch Consumer SDK
Authentication methods
TheStytchConsumer client exposes the following namespaces:
| Namespace | Description |
|---|---|
otp | One-time passcodes via SMS, email, or WhatsApp |
magicLinks | Email magic link authentication |
passwords | Password-based authentication |
oauth | OAuth flows (Google, Apple, and others) |
passkeys | WebAuthn / passkey authentication |
biometrics | Biometric authentication (Face ID / Touch ID) |
totp | Time-based one-time passcode (authenticator app) |
crypto | Crypto wallet authentication |
session | Session management |
user | User account management |
dfp | Device fingerprinting |
Compatibility and requirements
- Minimum iOS version: 15.0
- Language: Swift (async/await API)
- Distribution: Swift Package Manager