@abstraxn/signer-react 3.0.3 → 3.1.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/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [Unreleased]
9
+
10
+ ### Fixed
11
+
12
+ - **Sign MFA step-up with 403 responses** – Updated sign error handling in `@abstraxn/signer-core` integration so backend `SIGN_MFA_REQUIRED` is preserved when returned as `403 Forbidden` (not only `401`). This keeps the step-up flow working end-to-end: prompt for MFA code, call `POST /mfa/verify-sign` with auth token + `X-Device-Id`, retry the original sign request once, and surface clear messaging for invalid code or repeated step-up requirement.
13
+
8
14
  ## [3.0.3] - 2026-03-26
9
15
 
10
16
  ### Added
@@ -2426,6 +2426,12 @@ export function AbstraxnProviderInner({ config, children, base, wagmi, solana, }
2426
2426
  }
2427
2427
  return await walletRef.current.verifyMfa(code);
2428
2428
  }, []);
2429
+ const verifySignMfa = useCallback(async (code) => {
2430
+ if (!walletRef.current?.isConnected) {
2431
+ throw new Error("Wallet not connected");
2432
+ }
2433
+ return await walletRef.current.verifySignMfa(code);
2434
+ }, []);
2429
2435
  const disableMfaWithSignedPayload = useCallback(async () => {
2430
2436
  if (!walletRef.current?.isConnected) {
2431
2437
  throw new Error("Wallet not connected");
@@ -3545,6 +3551,7 @@ export function AbstraxnProviderInner({ config, children, base, wagmi, solana, }
3545
3551
  enableMfa,
3546
3552
  verifySetupMfa,
3547
3553
  verifyMfa,
3554
+ verifySignMfa,
3548
3555
  disableMfaWithSignedPayload,
3549
3556
  getSupportedAuthMethods,
3550
3557
  getLinkedAuthMethods,