Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Quick Start – 1auth
Skip to content

Quick Start

Install the SDK

npm
npm install @rhinestone/1auth

Get 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 / Wagmi

Use createPasskeyWalletClient for viem-compatible signing in existing web3 apps.

References