Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@getyoti/react-native-yoti-doc-scan

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@getyoti/react-native-yoti-doc-scan - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

2

package.json
{
"name": "@getyoti/react-native-yoti-doc-scan",
"version": "1.3.0",
"version": "1.4.0",
"description": "Yoti Doc Scan for React Native",

@@ -5,0 +5,0 @@ "main": "YotiDocScan.js",

@@ -136,3 +136,3 @@ ![YotiBanner](./yoti_banner.png)

Call the `startSession` method with your session Id and client session token.
Call the `startSession` method with your session Id and client session token.
The method accepts two callbacks: one invoked on success and the other when the result is a failure.

@@ -155,2 +155,6 @@

```
Optionally, you can specify Android request code. If not, by default it is set to 9001:
```javascript
YotiDocScan.setRequestCode(8888);
```

@@ -161,21 +165,25 @@ Your callbacks will receive a consistent response with two parameters: `code` (number) and `description` (string).

Code | Description | Retry possible (same session)
:-- | :-- | :--
1000 | No error occurred. The user cancelled the session | Yes
2000 | Unauthorised request (wrong or expired session token) | Yes
2001 | Session not found | Yes
2002 | Session expired | Yes
2003 | SDK launched without session Token | Yes
2004 | SDK launched without session ID | Yes
3000 | Yoti's services are down or unable to process the request | Yes
3001 | An error occurred during a network request | Yes
3002 | User has no network | Yes
4000 | The user did not grant permission to the camera | Yes
5000 | The user's camera was not found and file upload is not allowed | No
5002 | No more local tries for the liveness flow | Yes
5003 | SDK is out-of-date, please update the SDK to the latest version | No
5004 | An unexpected internal error occurred | No
5005 | An unexpected document capture error occurred | No
5006 | An unexpected liveness capture error occurred | No
| Code | Message | Retry possible for the same session |
| ----------------- | ---------------------------- | ---------------------------------- |
| 0 | Result with success | No |
| 1000 | No error occurred - the end-user cancelled the session for an unknown reason | Yes |
| 2000 | Unauthorised request (wrong or expired session token) | Yes |
| 2001 | Session not found | Yes |
| 2003 | SDK launched without session Token | Yes |
| 2004 | SDK launched without session ID | Yes |
| 3000 | Yoti's services are down or unable to process the request | Yes |
| 3001 | An error occurred during a network request | Yes |
| 3002 | User has no network | Yes |
| 4000 | The user did not grant permissions to the camera | Yes |
| 5000 | No camera (when user's camera was not found and file upload is not allowed) | No |
| 5002 | No more local tries for the liveness flow | Yes |
| 5003 | SDK is out-of-date - please update the SDK to the latest version | No |
| 5004 | Unexpected internal error | No |
| 5005 | Unexpected document scanning error | No |
| 5006 | Unexpected liveness error | No |
| 6000 | Document Capture dependency not found error | No |
| 6001 | Liveness Zoom dependency not found error | No |
| 6002 | Supplementary document dependency not found error | No |
## Troubleshooting

@@ -182,0 +190,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc