Skip to content

refactor: replace @privy-io/react-auth with Firefly backend signing#12414

Open
swkatmask wants to merge 1 commit into
developfrom
refactor/remove-privy-firefly-signing
Open

refactor: replace @privy-io/react-auth with Firefly backend signing#12414
swkatmask wants to merge 1 commit into
developfrom
refactor/remove-privy-firefly-signing

Conversation

@swkatmask

Copy link
Copy Markdown
Contributor

MF-0000 FW-0000

@swkatmask swkatmask force-pushed the refactor/remove-privy-firefly-signing branch from e663aed to 229c1ec Compare July 6, 2026 09:13
@swkatmask swkatmask marked this pull request as ready for review July 6, 2026 09:14
Remove the @privy-io/react-auth SDK and the Privy<->Firefly JWT sync. The
extension now signs directly against the Firefly embedded-wallet REST
endpoints on api.firefly.land (personal-sign, sign-typed-data-v4,
sign-transaction, send-transaction, privy-api/user, user/create/privy/user),
authenticated with the Firefly access token.

- Add FireflyEmbeddedWalletClient, FireflyEmbeddedProvider (EIP-1193), and
  the useFireflyEmbeddedWallets discovery hook (React Query, shared).
- Re-point usePrivyWallet, MaskWallet, and the wallet-setup flow at the new
  client/hook; drop useSyncJwtBasedAuthState.
- Remove PrivyProvider from Popup/Dashboard/ShadowRoot; reduce
  PrivyEnvGuard to an identity HOC.
- Drop @privy-io/react-auth, PRIVY_APP_ID build injection, the privy.io CSP
  whitelist, and the Privy modal CSS patch.
- Keep ImportSource.Privy and the historical hook/constant names so
  unaffected consumers compile unchanged.

Scope: EVM only. Solana, free-gas relay, and pin-code flows are deferred.
@swkatmask swkatmask force-pushed the refactor/remove-privy-firefly-signing branch from a37c0df to 6d2e7e5 Compare July 6, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant