Conversation
Add documentation for using Openfort embedded wallets as a signer with ZeroDev Kernel accounts. Openfort provides: - Non-custodial embedded wallets - Passkey and social login authentication - EIP-1193 compatible provider - Built-in ERC-4337 smart account support Documentation added for both current SDK and v5.3.x.
|
@jahanzeb1018 is attempting to deploy a commit to the zero-dev1 Team on Vercel. A member of the Team first needs to authorize it. |
- Changed package from @openfort/openfort-js to @openfort/react - Updated to use wagmi's useConnectorClient hook for provider access - Added proper OpenfortProvider setup with getDefaultConfig - Added full authentication flow example with OpenfortButton - Fixed v5.3.x version to use walletClientToSmartAccountSigner
SahilVasava
left a comment
There was a problem hiding this comment.
Thanks for adding Openfort as a signer option! The docs are well-written and the integration pattern is solid. A couple of issues to fix:
Bug: useOpenfortAuth doesn't exist — should be useUser
In both docs/pages/sdk/signers/openfort.mdx and docs/pages/sdk/v5_3_x/signers/openfort.mdx, the "Full example with authentication" section uses:
import { OpenfortButton, useOpenfortAuth } from "@openfort/react";
const { isAuthenticated } = useOpenfortAuth();The correct hook is useUser() (ref: official Openfort 7702 recipe):
import { OpenfortButton, useUser } from "@openfort/react";
const { isAuthenticated } = useUser();Minor: Missing accountType in walletConfig
The official Openfort examples include accountType: AccountTypeEnum.EOA in the walletConfig. Consider adding it to the provider setup examples:
import { AccountTypeEnum } from "@openfort/react";
walletConfig={{
shieldPublishableKey: "YOUR_SHIELD_PUBLISHABLE_KEY",
createEncryptedSessionEndpoint: "YOUR_BACKEND_ENDPOINT",
accountType: AccountTypeEnum.EOA,
}}Everything else looks good — the code examples are clear and the sidebar placement is correct.
Summary
This PR adds documentation for using Openfort embedded wallets as a signer with ZeroDev Kernel accounts.
Changes
docs/pages/sdk/signers/openfort.mdx- documentation for current SDKdocs/pages/sdk/v5_3_x/signers/openfort.mdx- documentation for SDK v5.3.xvocs.config.tsxto include Openfort in the sidebar under Auth ProvidersAbout Openfort
Openfort is a wallet infrastructure platform that provides:
Integration Pattern
The integration follows the same pattern as other providers (Dynamic, Privy, Turnkey):
openfort.embeddedWallet.getEthereumProvider()signerToEcdsaValidatorTesting
The code examples have been reviewed against Openfort's documentation to ensure accuracy.