Quick Start
Install the SDK
npm
npm install @rhinestone/1authGet a JWT signing key
Every user intent is authenticated with your app's JWT — there is no anonymous fallback. Create an app in the Rhinestone dashboard to generate a signing key, then expose two same-origin endpoints that mint the JWTs the SDK attaches to each intent. See Fee Sponsorship for the full server setup.
Initialize Client
import { OneAuthClient } from '@rhinestone/1auth';
const client = new OneAuthClient({
providerUrl: 'https://passkey.1auth.app',
// Required for intents — points at the endpoints you created above.
sponsorship: {
accessTokenUrl: '/api/sponsorship/access-token',
extensionTokenUrl: '/api/sponsorship/extension-token',
},
});Next Steps
React Components
Drop-in components like PayButton and BatchQueue. No viem or wagmi required.
Viem / WagmiUse createPasskeyWalletClient for viem-compatible signing in existing web3 apps.
References
- API Reference - Full SDK documentation
- RPC Reference - EIP-1193 provider methods
- npm - Install the SDK package
- Example App - Reference integration