Package-level declarations

Types

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class EmailMagicLinksOptions @JvmOverloads constructor(val loginExpirationMinutes: Int? = null, val signupExpirationMinutes: Int? = null, val loginTemplateId: String? = null, val signupTemplateId: String? = null) : Parcelable

A data class that defines ptions for configuring Email Magic Links

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class GoogleOAuthOptions @JvmOverloads constructor(val clientId: String? = null) : Parcelable

A data class that represents the configuration for Google OAuth

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class OAuthOptions @JvmOverloads constructor(val loginRedirectURL: String? = null, val signupRedirectURL: String? = null, val providers: List<OAuthProvider> = emptyList()) : Parcelable

A data class representing the configuration options for the OAuth product

Link copied to clipboard

An enum class representing all of the supported OAuth providers

Link copied to clipboard

An enum class representing all of the supported OTP methods

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class OTPOptions @JvmOverloads constructor(val methods: List<OTPMethods> = emptyList(), val expirationMinutes: Int = DEFAULT_OTP_EXPIRATION_TIME_MINUTES, val loginTemplateId: String? = null, val signupTemplateId: String? = null) : Parcelable

A data class representing options for configuring the OTP product

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class PasswordOptions @JvmOverloads constructor(val loginExpirationMinutes: Int? = null, val resetPasswordExpirationMinutes: Int? = null, val resetPasswordTemplateId: String? = null) : Parcelable

A data class representing options for configuring the Password product

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class SessionOptions @JvmOverloads constructor(val sessionDurationMinutes: Int = DEFAULT_SESSION_TIME_MINUTES) : Parcelable

A data class representing global session configuration options

Link copied to clipboard

An enum class representing all of the supported Products that you can use with this SDK

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class StytchProductConfig @JvmOverloads constructor(val products: List<StytchProduct> = listOf( StytchProduct.EMAIL_MAGIC_LINKS, StytchProduct.PASSWORDS, StytchProduct.OTP, ), val emailMagicLinksOptions: EmailMagicLinksOptions = EmailMagicLinksOptions(), val oAuthOptions: OAuthOptions = OAuthOptions(), val otpOptions: OTPOptions = OTPOptions(), val sessionOptions: SessionOptions = SessionOptions(), val passwordOptions: PasswordOptions = PasswordOptions(), val googleOauthOptions: GoogleOAuthOptions = GoogleOAuthOptions()) : Parcelable

A data class representing the overall product configuration that you can pass to the UI SDK

Link copied to clipboard
data class StytchStyles @JvmOverloads constructor(val darkTheme: StytchTheme = StytchTheme.defaultDarkTheme(), val lightTheme: StytchTheme = StytchTheme.defaultLightTheme()) : Parcelable

A data class that specifies the styles used by the UI components

Link copied to clipboard
data class StytchTheme @JvmOverloads constructor(val backgroundColor: Int = WHITE, val primaryTextColor: Int = BLACK, val secondaryTextColor: Int = SLATE, val disabledTextColor: Int = STEEL, val successColor: Int = PINE, val errorColor: Int = MAROON, val socialButtonBackgroundColor: Int = WHITE, val socialButtonTextColor: Int = CHARCOAL, val buttonBackgroundColor: Int = CHARCOAL, val buttonTextColor: Int = WHITE, val buttonBorderColor: Int = CHARCOAL, val buttonBorderRadius: Int = 4, val disabledButtonBackgroundColor: Int = CHALK, val disabledButtonBorderColor: Int = CHALK, val disabledButtonTextColor: Int = STEEL, val inputBorderRadius: Int = 4, val inputBorderColor: Int = CEMENT, val inputBackgroundColor: Int = WHITE, val inputTextColor: Int = CHARCOAL, val inputPlaceholderTextColor: Int = STEEL, val disabledInputBorderColor: Int = FOG, val disabledInputBackgroundColor: Int = CHALK, val disabledInputTextColor: Int = STEEL, val dialogTextColor: Int = CHARCOAL, val hideHeaderText: Boolean = false) : Parcelable

A data class used to configure the UI.