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-android 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 Android B2B SDK is a headless Kotlin Multiplatform library that targets Android. It provides a type-safe, coroutine-based API for all Stytch B2B authentication methods including SSO, SCIM provisioning, and multi-org discovery.

Maven package

com.stytch.sdk:b2b-headless

Android bindings 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 Android SDK: 24 (Android 7.0)
  • Language: Kotlin 2.3+ (coroutines-based API)
  • Build system: Gradle