@mosip/react-inji-verify-sdk 0.14.0-beta.7 → 0.14.0-beta.9
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.
|
@@ -79,14 +79,6 @@ type ExclusiveCallbacks =
|
|
|
79
79
|
onVPProcessed: (VPResult: VerificationResults) => void;
|
|
80
80
|
onVPReceived?: never;
|
|
81
81
|
};
|
|
82
|
-
type SameDeviceFlowEnabledProps = {
|
|
83
|
-
isEnableSameDeviceFlow: true;
|
|
84
|
-
supportedWallets: Wallet[];
|
|
85
|
-
};
|
|
86
|
-
type SameDeviceFlowDisabledProps = {
|
|
87
|
-
isEnableSameDeviceFlow?: false | undefined;
|
|
88
|
-
supportedWallets?: Wallet[];
|
|
89
|
-
};
|
|
90
82
|
interface InputDescriptor {
|
|
91
83
|
id: string;
|
|
92
84
|
format?: {
|
|
@@ -106,7 +98,7 @@ export interface PresentationDefinition {
|
|
|
106
98
|
};
|
|
107
99
|
input_descriptors: InputDescriptor[];
|
|
108
100
|
}
|
|
109
|
-
type
|
|
101
|
+
export type OpenID4VPVerificationProps = ExclusivePresentationDefinition & ExclusiveCallbacks & {
|
|
110
102
|
/**
|
|
111
103
|
|
|
112
104
|
React element that triggers the verification process (e.g., a button).
|
|
@@ -120,9 +112,9 @@ type BaseProps = ExclusivePresentationDefinition & ExclusiveCallbacks & {
|
|
|
120
112
|
*/
|
|
121
113
|
verifyServiceUrl: string;
|
|
122
114
|
/**
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
115
|
+
|
|
116
|
+
The client identifier for relaying party.
|
|
117
|
+
*/
|
|
126
118
|
clientId: string;
|
|
127
119
|
/**
|
|
128
120
|
|
|
@@ -135,6 +127,11 @@ type BaseProps = ExclusivePresentationDefinition & ExclusiveCallbacks & {
|
|
|
135
127
|
*/
|
|
136
128
|
transactionId?: string;
|
|
137
129
|
/**
|
|
130
|
+
Indicates whether the same device flow is enabled.
|
|
131
|
+
Defaults to true, allowing verification on the same device.
|
|
132
|
+
*/
|
|
133
|
+
isEnableSameDeviceFlow?: boolean;
|
|
134
|
+
/**
|
|
138
135
|
|
|
139
136
|
Styling options for the QR code.
|
|
140
137
|
*/
|
|
@@ -156,5 +153,4 @@ type BaseProps = ExclusivePresentationDefinition & ExclusiveCallbacks & {
|
|
|
156
153
|
*/
|
|
157
154
|
onError: (error: Error) => void;
|
|
158
155
|
};
|
|
159
|
-
export type OpenID4VPVerificationProps = (BaseProps & SameDeviceFlowEnabledProps) | (BaseProps & SameDeviceFlowDisabledProps);
|
|
160
156
|
export {};
|