ton-better-auth

JSON →
library 0.2.3 ·javascript
verified Jun 4, 2026

Better Auth plugin for TON Connect — sign in with TON wallets using ton_proof. Version 0.2.3. Provides server-side verification of TON Connect ton_proof payloads (nonce challenge, signature verification, wallet state-init parsing for v1–v5, on-chain get_public_key fallback) and a client plugin with typed helpers. Release cadence: active development. Key differentiators: integrates directly with Better Auth's session and user management, supports wildcard domain policies, per-network domain rules, anti-abuse cooldowns, and events. Requires @better-auth/core >=1.3.0, better-auth >=1.3.0, and optional react >=18 for client. Ships TypeScript types. Node >=20.