Verify
TIP
Payload
VerifyByMobilePayload
type
enum<string>
optional
Allowed values:
emailmobile
data
object
optional
code
string
optional
phone
string
optional
email
string
optional
country_code
string
optional
supportWebAuth
boolean
optional
Response
Success
Error
auth.verify.success
success
boolean
success
status
enum<number>
status
Allowed values:
200201202
data
object
data
case
enum<string>
required
new_customer
. This indicates that the user is a new customer and must go through the registration process. On the other hand, its value will be authenticated
when a token is returned. This indicates that the user has been authorized and is ready to log in.Allowed values:
new_customerauthenticated
redirect_url
string
required
token
string
required
verification
object
required
Usage
verify()
passes the customer access code to the backend in order to proceed with the verification process. In the case of using the phone number method to receive the access code, this method will pass the received access code along with the customer's phone number and the country code.Mobile
Email
Events
onVerified
onVerificationFailed
phone
or email
. Additionally, this event will be triggered when the verification process fails and the backend sends error codes. In other words, the received response status is not 200.
Modified at 2025-03-04 12:54:02