Package com.stytch.sdk.b2b.otp
The OTP.kt interface provides methods for sending and authenticating a one-time passcode (OTP). Currently, only SMS OTP are supported.
Call the StytchB2BClient.otp.sms.send() method to send a one-time passcode (OTP) to a user using their phone number via SMS.
Call the StytchB2BClient.otp.sms.authenticate() method to authenticate a one-time passcode (OTP) for a user.
See: Description
-
Class Summary Class Description SendParameters A data class wrapping the parameters needed to send an SMS OTP AuthenticateParameters A data class wrapping the parameters needed to authenticate an SMS OTP LoginOrSignupParameters A data class wrapping the parameters needed to send an Email OTP LoginOrSignup request AuthenticateParameters A data class wrapping the parameters needed to authenticate an Email OTP SendParameters A data class wrapping the parameters needed to send an Email Discovery OTP AuthenticateParameters A data class wrapping the parameters needed to authenticate an Email Discovery OTP -
Interface Summary Interface Description SMS Provides all possible ways to call SMS OTP endpoints Discovery Provides all possible ways to call Email OTP Discovery endpoints Email Provides all possible ways to call Email OTP endpoints OTP The OTP interface provides methods for sending and authenticating One-Time Passcodes (OTP) via SMS