@privy-io/react-auth 1.50.0 → 1.50.1-beta-20231205195543
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/dist/esm/index.js +59 -59
- package/dist/index.d.ts +1 -8
- package/dist/index.js +90 -90
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -280,7 +280,7 @@ type MfaInitEnrollmentResponseDataType = {
|
|
|
280
280
|
};
|
|
281
281
|
type MfaSubmitEnrollmentResponseDataType = Record<string, never>;
|
|
282
282
|
type MfaUnenrollResponseDataType = Record<string, never>;
|
|
283
|
-
declare const PrivyIframeErrorTypes: readonly ["error", "invalid_request_arguments", "wallet_not_on_device", "invalid_recovery_pin", "insufficient_funds", "
|
|
283
|
+
declare const PrivyIframeErrorTypes: readonly ["error", "invalid_request_arguments", "wallet_not_on_device", "invalid_recovery_pin", "insufficient_funds", "missing_or_invalid_mfa", "mfa_verification_max_attempts_reached", "mfa_timeout"];
|
|
284
284
|
type PrivyIframeErrorTypesType = (typeof PrivyIframeErrorTypes)[number];
|
|
285
285
|
interface EmbeddedWalletProxy {
|
|
286
286
|
create: (data: WalletCreateRequestDataType) => Promise<WalletCreateResponseDataType>;
|
|
@@ -2343,13 +2343,6 @@ type PrivyEvents = {
|
|
|
2343
2343
|
* @param mfaMethods {@link MfaMethod[]} - List of MFA methods that the user can choose from
|
|
2344
2344
|
*/
|
|
2345
2345
|
onMfaRequired: (mfaMethods: MfaMethod[]) => void;
|
|
2346
|
-
/**
|
|
2347
|
-
* Callback that will execute in the case of a non-successful MFA flow.
|
|
2348
|
-
*
|
|
2349
|
-
* @param error {PrivyErrorCode} - the corresponding error code
|
|
2350
|
-
*
|
|
2351
|
-
*/
|
|
2352
|
-
onError?: CallbackError;
|
|
2353
2346
|
};
|
|
2354
2347
|
};
|
|
2355
2348
|
|