@soyio/soyio-rn-sdk 0.1.10 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -54,6 +54,7 @@ export default function App() {
54
54
  const registerParams = {
55
55
  flowTemplateId: "<flow template id>", // Starts with 'vft_'
56
56
  userEmail: "<user email>", // OPTIONAL
57
+ forceError: 'no_error', // OPTIONAL
57
58
  };
58
59
 
59
60
  // For authenticate existing identity
@@ -108,6 +109,12 @@ The `onEventChange` function should be defined as follows:
108
109
  onEventChange?: (event: { type: string; url?: string }) => void;
109
110
  ```
110
111
 
112
+ ## Simulating a failed registration
113
+ To simulate a failed validation flow (useful for handling failure case during integration), simply add
114
+ ```js
115
+ forceError: 'validation_error'
116
+ ```
117
+ to the `registerParams` object. This only works in the sandbox environment.
111
118
  ## TypeScript support
112
119
 
113
120
  This package includes TypeScript declarations for the Soyio View.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soyio/soyio-rn-sdk",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "license": "MIT",
5
5
  "author": "Ignacio Méndez",
6
6
  "main": "./package/index.js",