1auth SDK Documentation
Interactive documentation and live previews for the @1auth/sdk package. Click any component to see detailed documentation and code examples.
Guides
React Components
Authenticate
ComponentInteractive demo for passkey authentication and message signing.
PayButton
ComponentA one-click payment button that handles authentication and intent signing automatically.
BatchQueueProvider
ComponentContext provider for managing batched transaction queues with localStorage persistence.
BatchQueueWidget
ComponentFloating widget UI showing queued transactions with sign-all functionality.
Hooks
Client
signTypedData
ClientSign EIP-712 typed data with human-readable preview and verification.
PasskeyProviderClient
ClientMain SDK client for authentication, signing, and intent execution via passkeys.
createPasskeyWalletClient
ClientCreate a viem-compatible WalletClient that uses passkeys for signing transactions.
Quick Start
Installation
pnpm add @1auth/sdkBasic Usage
import { PasskeyProviderClient, PayButton } from '@1auth/sdk';
const client = new PasskeyProviderClient({
providerUrl: 'https://auth.example.com',
clientId: 'my-app',
});