@mosip/react-inji-verify-sdk 0.15.0-beta.9 → 0.16.0-beta.1
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
|
@@ -227,7 +227,7 @@ presentationDefinition={{
|
|
|
227
227
|
| `onVpProcessed` | function | - | Get full results immediately |
|
|
228
228
|
| `onVpReceived` | function | - | Get transaction ID only |
|
|
229
229
|
| `onQrCodeExpired` | function | - | Handle QR code expiration |
|
|
230
|
-
| `
|
|
230
|
+
| `isSameDeviceFlowEnabled` | boolean | true | Enable same-device flow (optional) |
|
|
231
231
|
| `qrCodeStyles` | object | - | Customize QR code appearance |
|
|
232
232
|
|
|
233
233
|
## ⚠️ Important Limitations
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export type OpenID4VPError = {
|
|
3
|
-
message: string;
|
|
4
|
-
code?: string;
|
|
5
|
-
details?: unknown;
|
|
6
|
-
};
|
|
7
2
|
export type VerificationStatus = "valid" | "invalid" | "expired";
|
|
8
3
|
export interface VerificationResult {
|
|
9
4
|
/**
|
|
@@ -23,6 +18,7 @@ export interface QrData {
|
|
|
23
18
|
requestId: string;
|
|
24
19
|
authorizationDetails?: {
|
|
25
20
|
responseType: string;
|
|
21
|
+
responseMode: string;
|
|
26
22
|
clientId: string;
|
|
27
23
|
presentationDefinition: Record<string, unknown>;
|
|
28
24
|
presentationDefinitionUri?: string;
|
|
@@ -125,7 +121,7 @@ export type OpenID4VPVerificationProps = ExclusivePresentationDefinition & Exclu
|
|
|
125
121
|
Indicates whether the same device flow is enabled.
|
|
126
122
|
Defaults to true, allowing verification on the same device.
|
|
127
123
|
*/
|
|
128
|
-
|
|
124
|
+
isSameDeviceFlowEnabled?: boolean;
|
|
129
125
|
/**
|
|
130
126
|
|
|
131
127
|
Styling options for the QR code.
|