SmsOTP
Provides all possible ways to call SMS OTP endpoints
Types
Link copied to clipboard
data class Parameters(val phoneNumber: String, val expirationMinutes: UInt = DEFAULT_OTP_EXPIRATION_TIME_MINUTES)
Content copied to clipboard
Data class used for wrapping parameters used with SMS OTP
Functions
Link copied to clipboard
abstract suspend fun loginOrCreate(parameters: OTP.SmsOTP.Parameters): LoginOrCreateOTPResponse
Content copied to clipboard
abstract fun loginOrCreate(parameters: OTP.SmsOTP.Parameters, callback: (LoginOrCreateOTPResponse) -> Unit)
Content copied to clipboard
Wraps Stytch’s SMS OTP login_or_create endpoint. Requests a SMS OTP for a user to log in or create an account depending on the presence and/or status current account.
Link copied to clipboard
abstract suspend fun send(parameters: OTP.SmsOTP.Parameters): BaseResponse
Content copied to clipboard
Wraps Stytch’s SMS OTP send endpoint. Requests an SMS OTP for a user to authenticate.
abstract fun send(parameters: OTP.SmsOTP.Parameters, callback: (BaseResponse) -> Unit)
Content copied to clipboard
Wraps Stytch’s SMS OTP send endpoint. Requests am SMS OTP for a user to authenticate.