Authenticate users and access wallets in a few lines of code.
import { KIDAuth } from '@kid/oauth2';
const auth = new KIDAuth({
clientId: 'YOUR_CLIENT_ID',
redirectUri: 'https://yourapp.com/callback'
});
// Generate login URL with PKCE
const loginUrl = auth.createLoginUrl({
scope: 'profile.basic wallet.read'
});
// Exchange code for tokens
const tokens = await auth.exchangeCode(code);
// Get user info with wallet
const user = await auth.getUserInfo(tokens.access_token);
console.log(user.wallet_address);Web2 authentication with Web3 superpowers, out of the box.
Industry-standard authorization with PKCE. Google, Apple, Telegram out of the box.
Every user gets a blockchain wallet on signup. Zero extra steps for your users.
Sponsor gas fees for your users. They transact on-chain, you cover the cost.
Full type safety and autocomplete. Integrate authentication in minutes.
Request only what you need: profile, contact, wallet.read, wallet.transfer.
React, Next.js, Vue, Flutter, React Native, or any HTTP client.
Every authenticated user gets a wallet. Sign messages, send transactions, and sponsor gas — all through standard OAuth scopes.
Retrieve wallet address and public key
Request message signatures for verification
Execute transactions with optional gas sponsorship
Cover transaction fees for seamless UX
Copy a prompt, paste it into your AI coding assistant, and get a working integration.
Read https://dash.kid.koompi.org/llms.txt and implement KID OAuth in my Next.js app: 1. Create login button with PKCE flow 2. API route for token exchange (/api/auth/callback) 3. Token refresh endpoint (/api/auth/refresh) 4. Get user profile with wallet address 5. Store tokens in httpOnly cookies 6. Support wallet.read and wallet.transfer scopes
Register your app in the dashboard. Get your client_id and client_secret.
client_id: 'abc123.kid.koompi.org'Add @kid/oauth2 to your project and configure the login flow.
npm install @kid/oauth2Users authenticate and automatically receive a blockchain wallet.
user.wallet_address // 0x...