Stytch Android

Stytch is an authentication platform, written by developers for developers, with a focus on improving security and user experience via passwordless authentication. Stytch offers direct API integrations, language-specific libraries, and SDKs (like this one) to make the process of setting up an authentication flow for your app as easy as possible.

The module contains three packages that are of interest to a developer:

  • com.stytch.sdk.b2b: Use this SDK to interact with your B2B Projects, Organizations and Members

  • com.stytch.sdk.consumer: Use this SDK to interact with your Consumer Projects and Users

  • com.stytch.sdk.common: This package contains resources shared between our B2B and Consumer SDKs

Packages

Link copied to clipboard

Stytch's B2B SDK makes it simple to seamlessly onboard, authenticate, and engage users. This SDK provides the easiest way for you to use Stytch on Android. With just a few lines of code, you can easily authenticate your users and get back to focusing on the core of your product.

Link copied to clipboard

The Discovery.kt interface provides methods for discovering a member's available organizations, creating organizations, and exchanging sessions between organizations.

Link copied to clipboard
Link copied to clipboard

The B2BMagicLinks.kt interface provides methods for sending and authenticating users with Email Magic Links.

Link copied to clipboard

The Member.kt interface provides methods for retrieving the current authenticated user.

Link copied to clipboard

The OAuth.kt interface provides methods for authenticating a user via a any of the following third-party OAuth providers, provided you have configured them within your Stytch Dashboard:

Link copied to clipboard

The Organization.kt interface provides methods for retrieving, updating, and deleting the current authenticated user's organization and creating, updating, deleting, reactivating, and searching an organizations members

Link copied to clipboard

The OTP.kt interface provides methods for sending and authenticating a one-time passcode (OTP). Currently, only SMS OTP are supported.

Link copied to clipboard

The Passwords.kt interface provides methods for authenticating, creating, resetting, and performing strength checks of passwords.

Link copied to clipboard
Link copied to clipboard

The RecoveryCodes.kt interface provides methods for getting, rotating, and using recovery codes for a member

Link copied to clipboard
Link copied to clipboard

The B2BSessions.kt interface provides methods for authenticating, updating, or revoking sessions, and properties to retrieve the existing session token (opaque or JWT).

Link copied to clipboard

Single-Sign On (SSO) refers to the ability for a user to use a single identity to authenticate and gain access to multiple apps and service. In the case of B2B, it generally refers for the ability to use a workplace identity managed by their company. Read our blog post for more information about SSO.

Link copied to clipboard

The TOTP.kt interface provides methods for creating and authenticating TOTPs for a member

Link copied to clipboard

This package contains resources shared between our B2B and Consumer SDKs, including helpful typealiases, utility functions, data models, and internal support code.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Contains shared OAuth/SSO implementation code.

Link copied to clipboard

Stytch's consumer SDK makes it simple to seamlessly onboard, authenticate, and engage users. This SDK provides the easiest way for you to use Stytch on Android. With just a few lines of code, you can easily authenticate your users and get back to focusing on the core of your product.

Link copied to clipboard

The Biometrics.kt interface provides methods for detecting biometric availability, registering, authenticating, and removing biometrics identifiers.

Link copied to clipboard

The CryptoWallet.kt interface provides methods for authenticating a user with a crypto wallet.

Link copied to clipboard
Link copied to clipboard

The MagicLinks.kt interface provides methods for sending and authenticating users with Email Magic Links.

Link copied to clipboard

The OAuth.kt interface provides methods for authenticating a user via a native Google OneTap prompt or any of the following third-party OAuth providers, provided you have configured them within your Stytch Dashboard:

Link copied to clipboard

The OTP.kt interface provides methods for sending and authenticating One-Time Passcodes (OTP) via SMS, WhatsApp, and Email.

Link copied to clipboard

The Passkeys.kt interface provides methods for registering and authenticating with Passkeys.

Link copied to clipboard

The Passwords.kt interface provides methods for authenticating, creating, resetting, and performing strength checks of passwords.

Link copied to clipboard

The Sessions.kt interface provides methods for authenticating, updating, or revoking sessions, and properties to retrieve the existing session token (opaque or JWT).

Link copied to clipboard
Link copied to clipboard

The UserManagement.kt interface provides methods for retrieving an authenticated user and deleting authentication factors from an authenticated user.