gbc-kyc-kit 1.2.6 → 1.3.6

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.
package/README.md CHANGED
@@ -98,6 +98,7 @@ If you use this components with TypeScript, you should create a customType.d.ts
98
98
  | clientId | string | Global Bridge Connections send you for email | This value is unique for each client and will be sent for email. |
99
99
  | authorize | promise | () => Promise() | This Function verify clientId vs TOKEN and return accessToken. |
100
100
  | dual | boolean | false | Isn't required and the default value is false. Just would used to enable dual upload of ID Document in Document Reader component (Two sides) |
101
+ | picBase64 | string | | Is required. It would be used to compare the selfie image with this picture |
101
102
 
102
103
  ## Document Reader Component
103
104
 
@@ -108,7 +109,9 @@ import { DocumentReader } from "gbc-kyc-kit";
108
109
  Props Available:
109
110
 
110
111
  - mode: string 'dark' || 'light' default is 'light'
111
- - loader: bool default is false
112
+ - dual: bool default is false
113
+ - inProduction: string default is prd
114
+ - dataDocument: function to get response
112
115
 
113
116
  ```js
114
117
  const getDataDocument = async (info) => {
@@ -135,7 +138,7 @@ import { LivenessCheck } from "gbc-kyc-kit";
135
138
  Props Available:
136
139
 
137
140
  - mode: string 'dark' || 'light' default is 'light'
138
- - loader: bool default is false
141
+ - inProduction: string default is prd
139
142
 
140
143
  ```js
141
144
  const listener = (event) => {
@@ -168,6 +171,11 @@ useEffect(() => {
168
171
  import { BlackList } from "gbc-kyc-kit";
169
172
  ```
170
173
 
174
+ Props Available:
175
+
176
+ - mode: string 'dark' || 'light' default is 'light'
177
+ - inProduction: string default is prd
178
+
171
179
  ```js
172
180
  <BlackList
173
181
  clientId={clientId}
@@ -176,3 +184,32 @@ import { BlackList } from "gbc-kyc-kit";
176
184
  mode="dark" // Default value is light, not is required
177
185
  />
178
186
  ```
187
+
188
+ ## Facematch Component
189
+
190
+ ```js
191
+ import { FaceMatch } from "gbc-kyc-kit";
192
+ ```
193
+
194
+ Props Available:
195
+
196
+ - mode: string 'dark' || 'light' default is 'light'
197
+ - inProduction: string default is prd
198
+ - picBase64: string img to compare with selfie in base64 format
199
+ - dataFaceMatch: function to get response
200
+
201
+ ```js
202
+ const getDataFaceMatch = async (info) => {
203
+ if (info) {
204
+ console.log(info.data);
205
+ }
206
+ };
207
+ // This component return data and you can get it with getDataFaceMatch function.
208
+
209
+ <FaceMatch
210
+ dataFaceMatch={getDataFaceMatch}
211
+ clientId={clientId}
212
+ authorize={getAccessToken}
213
+ inProduction="prd"
214
+ />;
215
+ ```