Learn more about the details of the server-side SDK
proveEnv
to uat-eu
.
Verify()
POST /verify
so the front end can submit the flow type, phone number, first name, and last name. On the back end, you’ll start a Prove flow with a call to the Verify()
function. This function takes these required parameters:
desktop
or mobile
to describe which type of device the customer is starting their flow on.desktop
, Instant Link executes the possession check. When flow type is mobile
, first Mobile Auth executes and then one-time password (OTP) as a fallback. The Instant Link session has a three minute timeout from when it’s sent through SMS to when the customer can select the link. The OTP session has a two minute timeout from when it’s sent through SMS to when the customer can enter in the OTP.Flow Type=desktop
. This should be a URL you maintain. Once the customer clicks the Instant Link, they will be redirected to this URL. It should instruct the customer to continue the workflow. Maximum length is 128 characters.true
to allow the customer to re-enter the OTP up to three times. Defaults to false
.
Authenticate()
function - it’s a short lived JSON Web Token (JWT) tied to the current flow and used for the possession checks.
Validate()
, Challenge()
, and Complete()
function calls of the same flow. The correlation ID ties together different system calls for the same Prove flow. It also aids in troubleshooting. The session expires in 15 minutes from when the correlation ID returns from the Start()
call.
true
if the challenge succeeded and customer info returned, false
if it failed, or pending
if the possession check needs to complete first.
success
if the possession check was successful, failed
if it failed, or pending
if the possession check needs to complete first.
success
if the verification was successful, failed
if it failed, or pending
if the verification check needs to complete first.
authToken
, returned to the front end.
VerifyStatus()
VerifyStatus()
to get the final result in the success
field.
This function is the final call in the flow that verifies the customer information.
This function takes this required parameter:
Verify()
function. It validates against this RegEx: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
.true
if the challenge succeeded and customer info returned, false
if it failed, or pending
if the possession check needs to complete first.
success
if the possession check was successful, failed
if it failed, or pending
if the possession check needs to complete first.
success
if the verification was successful, failed
if it failed, or pending
if the verification check needs to complete first.