Package com.stytch.sdk

Types

Link copied to clipboard
typealias AuthResponse = StytchResult<AuthData>

Type alias for StytchResult used for authentication responses

Link copied to clipboard
typealias BaseResponse = StytchResult<BasicData>

Type alias for StytchResult used for basic responses

Link copied to clipboard
typealias LoginOrCreateOTPResponse = StytchResult<LoginOrCreateOTPData>

Type alias for StytchResult used for loginOrCreateOTP responses

Link copied to clipboard
typealias LoginOrCreateUserByEmailResponse = StytchResult<BasicData>

Type alias for StytchResult used for loginOrCreateUserByEmail responses

Link copied to clipboard
interface MagicLinks

MagicLinks interface that encompasses authentication functions as well as other related functionality

Link copied to clipboard
interface OTP

OTP interface that encompasses authentication functions as well as other related functionality

Link copied to clipboard
interface Passwords

Passwords interface that encompasses authentication functions as well as other related functionality

Link copied to clipboard
typealias PasswordsCreateResponse = StytchResult<CreateResponse>

Type alias for StytchResult used for PasswordsCreate responses

Link copied to clipboard
typealias PasswordsStrengthCheckResponse = StytchResult<StrengthCheckResponse>

Type alias for StytchResult used for PasswordsStrengthCheck responses

Link copied to clipboard
interface Sessions

Sessions interface that encompasses authentication functions as well as other related functionality

Link copied to clipboard
object StytchClient

The entrypoint for all Stytch-related interaction.

Link copied to clipboard
sealed class StytchExceptions : Exception

Exception wrapper meant for use with Stytch-specific exceptions and provides a straightforward way to encompass any possible errors that come from the SDK.

Link copied to clipboard
sealed class StytchResult<out T>

Provides a wrapper for responses from Stytch API responses

Link copied to clipboard
interface UserManagement
Link copied to clipboard
typealias UserResponse = StytchResult<UserData>

Functions

Link copied to clipboard
fun String.toStytchErrorType(): StytchErrorType?

Converts a string to an error type supported by Stytch