@avokwalletjs/react-native-federated
v0.1.0
Published
React Native + federated passkey connection for Avok EIP-7702 wallets (system-browser, network RP-ID).
Maintainers
Readme
@avokwalletjs/react-native-federated
React Native / Expo bindings for Avok EIP-7702 passkey wallets over a federated connection. Sign-in hands off to the network's passkey origin through the system browser; your app never touches key material. Pick payment per send: useGaslessSend or useSelfPaySend.
npm install @avokwalletjs/react-native-federated viemimport {
AvokProvider, createSession, createSystemBrowserConnection,
createAsyncSessionStorage, useAvokSignIn, useGaslessSend, useSelfPaySend,
} from "@avokwalletjs/react-native-federated";
const connection = createSystemBrowserConnection({ authOrigin: "https://your-network.example" });
const session = createSession({
discoveryUrl: "https://your-network.example/.well-known/avok-configuration",
clientId: "your-app",
redirectUri: "your-app://callback",
connection,
storage: createAsyncSessionStorage(),
});Wrap your app in <AvokProvider session={session}>, then use the sign-in and pay hooks exactly as on web. The system-browser handoff requires your app's deep-link redirect (your-app://callback) to be registered.
Key material
In federated mode the wallet's key and recovery live at the network's origin, not in your app. Your app only ever holds a session and signed intents.
Status
Unaudited; see the repository SECURITY.md. Key loss without a backup is irreversible.
License
MIT.
