Skip to content

Commit d8770a7

Browse files
committed
Update docs to replace ReclaimVerificationApi with ReclaimVerification
1 parent 6e3db29 commit d8770a7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,39 +232,39 @@ const verificationResult = await reclaimVerification.startVerification({
232232
});
233233
```
234234
235-
The returned result is a [ReclaimVerificationApi.Response] object. This object contains a response that has proofs, exception, and the sessionId if the verification is successful.
235+
The returned result is a [ReclaimVerification.Response] object. This object contains a response that has proofs, exception, and the sessionId if the verification is successful.
236236
237237
### Exception Handling
238238
239-
If the verification ends with an exception, the exception is thrown as a [ReclaimVerificationApi.ReclaimVerificationException] object.
239+
If the verification ends with an exception, the exception is thrown as a [ReclaimVerification.ReclaimVerificationException] object.
240240
241241
Following is an example of how to handle the exception using [error.type]:
242242
243243
```js
244244
try {
245245
// ... start verification
246246
} catch (error) {
247-
if (error instanceof ReclaimVerificationApi.ReclaimVerificationException) {
247+
if (error instanceof ReclaimVerification.ReclaimVerificationException) {
248248
switch (error.type) {
249-
case ReclaimVerificationApi.ExceptionType.Cancelled:
249+
case ReclaimVerification.ExceptionType.Cancelled:
250250
Snackbar.show({
251251
text: 'Verification cancelled',
252252
duration: Snackbar.LENGTH_LONG,
253253
});
254254
break;
255-
case ReclaimVerificationApi.ExceptionType.Dismissed:
255+
case ReclaimVerification.ExceptionType.Dismissed:
256256
Snackbar.show({
257257
text: 'Verification dismissed',
258258
duration: Snackbar.LENGTH_LONG,
259259
});
260260
break;
261-
case ReclaimVerificationApi.ExceptionType.SessionExpired:
261+
case ReclaimVerification.ExceptionType.SessionExpired:
262262
Snackbar.show({
263263
text: 'Verification session expired',
264264
duration: Snackbar.LENGTH_LONG,
265265
});
266266
break;
267-
case ReclaimVerificationApi.ExceptionType.Failed:
267+
case ReclaimVerification.ExceptionType.Failed:
268268
default:
269269
Snackbar.show({
270270
text: 'Verification failed',

0 commit comments

Comments
 (0)