Prerequisites
- Sandbox credentials: Ensure you have Prove Sandbox credentials from the Developer Portal. To access Sandbox credentials, follow the steps outlined on the Authentication page. To access the Prove API, use your OAuth 2.0 client ID and client secret. You can load these from environment variables or another method:
Token ExpirationThe OAuth token expires after 60 minutes, requiring you to get another token.
- Server-side SDK: Install the server-side SDK of your choice by running a command in your terminal, or by using a dependency management tool specific to your project.
- Client-side SDK: Install the client-side SDK of your choice by running a command in your terminal, or by using a dependency management tool specific to your project.
To integrate solutions, you must use the client-side SDK.
- Web SDK
- Android SDK
- iOS SDK
Implement Prove Identity
1
Prompt Customer or Gather Data From CRM
- No Mobile Auth
- Mobile Auth
Create or update your first screen to gather customer data.
2
Determine Type of Flow
- Web SDK
- Android SDK
- iOS SDK
Determine if the customer is on a mobile or desktop browser using this example. If the
isMobile is true, set mobile as the flowType for the Start() function on the server, otherwise you can set desktop:3
Initialize the Flow
- No Mobile Auth
- Mobile Auth
Send a request to your back end server with the phone number and flow type.
- Web SDK
- Android SDK
- iOS SDK
4
Call the Start Endpoint
Start a Prove flow with a call to the The function returns the following fields:
Start() function. This function takes these required parameters:-
flowType: eitherdesktopormobileto describe which type of device the customer is starting their flow on. -
finalTargetURL: required whenflowType=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.
-
allowOTPRetry: set totrueto allow the customer to re-enter the OTP up to three times. Defaults tofalse.For OTP retries, make sure to implement client SDK changes in the next step.
- No Mobile Auth
- Mobile Auth
-
authToken: send this to your client-side code through theAuthenticate()function - it’s a JSON Web Token (JWT) tied to the current flow and used for the possession checks. It expires after 15 minutes. -
correlationId: save this in your current session, then pass it in to each of theValidate(),Challenge(), andComplete()function calls of the same flow. The correlation ID ties together different system calls for the same Prove flow. The session expires in 15 minutes from when the correlation ID returns from theStart()call. -
next: map of the next API call you need to make.
authToken in a response to the front end.5
Authenticate
Once you have the To set the One-Time Password (OTP) handler, To set the Instant Link handler, In the desktop flow, a WebSocket opens for three minutes on the desktop browser while waiting for the customer to select the link in the text message. Once clicked, the WebSocket closes and the
authToken, build the authenticator for both the mobile and desktop flows.- Web SDK
- Android SDK
- iOS SDK
Configure OTP
To use the Resend/Retry/Phone Change features, you need to install the Web SDK version 2.15.1 or later.
withOtpFallback(startStep: OtpStartStep | OtpStartStepFn, finishStep: OtpFinishStep | OtpFinishStepFn), requires implementing the OtpStartStep and OtpFinishStep. When returning the phone number in the functions, ensure you return an object with the field phoneNumber to the resolve() function.The OTP session has a two minute timeout from when it’s sent through Short Message Service (SMS) to when the customer can enter in the OTP.- Default
- Prompt for Phone Number
- Resend
- Retry OTP
- Phone Number Change
Follow these instructions if you are implementing OTP and you are passing in the phone number on the Call the
/v3/start endpoint. In this case, you’ve already prompted for a phone number so you don’t need to prompt for it in the client SDK.Since you passed the phone number in the Start() function, call resolve(null) to communicate to the SDK you have the customer’s agreement to deliver the SMS message. Ensure you return an object to resolve() function.reject('some error message') method to communicate to the SDK any issues while trying to obtain the phone number or the OTP. Report an error if the customer cancels the SMS transaction or presses the back button to leave the screen.In the finish step, call the resolve(result: OtpFinishResult) method to return the collected OTP value in which result variable has OnSuccess value for OtpFinishResultType and the OTP value wrapped in OtpFinishInput.Configure Instant Link
To use the Resend/Retry/Phone Change features, you need to install the Web SDK version 2.15.1 or later.
withInstantLinkFallback(startStep: InstantLinkStartStep | InstantLinkStartStepFn, retryStep?: InstantLinkRetryStep | InstantLinkRetryStepFn) requires implementing the InstantLinkStartStep interface and optionally the InstantLinkRetryStep interface if you wish for advanced capabilities. When returning the phone number in the functions, ensure you return an object with the field phoneNumber to the resolve() function.The Instant Link session has a three minute timeout from when it’s sent through Short Message Service (SMS) to when the customer can click the received link.- Default
- Prompt for Phone Number
- Resend
- Phone Number Change
Follow these instructions if you are implementing Instant Link and you are passing in the phone number on the
/v3/start endpoint. In this case, you’ve already prompted for a phone number so you don’t need to prompt for it in the client SDK.Since you passed the phone number in the Start() function, call resolve(null) to communicate to the SDK you have the customer’s agreement to deliver the SMS message. Ensure you return an object to resolve() function.AuthFinishStep function finishes.If you’re using Content Security Policy headers, ensure you allow
wss: device.uat.prove-auth.proveapis.com and wss: device.prove-auth.proveapis.com.6
Verify Mobile Number
In the
AuthFinishStep, you’ll specify a function to call once the possession checks complete on the mobile phone. This endpoint on your back end server calls the Validate() function to validate the phone number. The AuthFinishStep then completes. In the event of cancellation, the server makes a call to the Validate() function and returns success=false.7
Validate Mobile Phone
Once the possession checks finish on the mobile device, the finish handler on the client-side SDK executes. You then make a request to your server such as The function returns the following fields:
POST /verify to make the next call in the flow to the Validate() function.This function requires the Correlation ID which is returned by the Start() function.-
success: eithertrueif the mobile number validation was successful, orfalseif it failed. -
challengeMissing:falsesince challenge data isn’t needed. -
phoneNumber: the validated phone number. -
next: map of the next API call you need to make.
8
Verify the Customer Information
Prompt the customer for PII entry into your form or gather from your CRM. Then submit that information to the back end server so the
Complete() call can then verify the customer information.Additionally, specific to the KYC add-on use case, you need to pass in first name, last name, DOB, and SSN (or address) to ensure you receive back the KYC elements and correct CIP values.
- Web SDK
- Android SDK
- iOS SDK
9
Call the Complete Endpoint
This function is the final call in the flow that verifies the customer information.This function takes these required parameters:The function returns the following fields:
-
Correlation ID: this is the ID returned by the
Start()function. - Individual: customer information in a map.
When implementing the KYC add-on, you need to pass in first name, last name, DOB, and SSN (or address) to ensure you receive back the KYC and CIP fields. If applicable, the following reason codes will return in Production:
- DI - this identity is associated with a death indicator.
- CF - The address matches the address of a U.S. correctional facility.
- PO - The address was classified as a PO Box.
-
Success:
trueif the customer’s identity information is associated with the mobile number. -
Next: map of the next API call you need to make, in this case,
Done.
Test your Prove implementation
Next, reference the Sandbox test scenarios to test users and simulate different behaviors encountered in production.Production LaunchTo launch in Production, please contact your Prove representative.

