Skip to main content

Documentation Index

Fetch the complete documentation index at: https://stytch.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

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 B2B SDK is a headless Kotlin Multiplatform library distributed as a Swift package. It provides a Swift-native async/await API for all Stytch B2B authentication methods including SSO, SCIM provisioning, and multi-org discovery, with idiomatic Swift wrappers generated by SKIE.

Swift package

StytchB2BSDK

iOS Swift package for the Stytch B2B SDK

Authentication methods

The StytchB2B client exposes the following namespaces:
NamespaceDescription
magicLinksEmail magic link authentication
otpOne-time passcodes via SMS and email
passwordsPassword-based authentication
oauthOAuth flows (Google and others) with org-level and discovery modes
ssoSAML and OIDC SSO authentication
totpTime-based one-time passcode (authenticator app)
discoveryCross-org discovery: list and join organizations
sessionSession management
membersMember account management
organizationsOrganization management
recoveryCodesRecovery code management
scimSCIM provisioning
rbacRole-based access control
dfpDevice fingerprinting

Compatibility and requirements

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