TGViewer
AI Dev Wall AI Dev Wall @ai_dev_wall · 1.18K subscribers
Post #196 1.27K
Hey everyone 👋

I just published a small package I've been working on - ton-better-auth. It's a Better Auth plugin that lets users sign in with their TON wallet using TON Connect.
The idea came from needing this for a project and not finding a clean solution. It handles the ton_proof verification on the backend - replay protection, signature validation, state-init parsing for different wallet versions, all that stuff.
Basic setup looks like this:

npm install ton-better-auth


import { betterAuth } from "better-auth";
import { tonConnect } from "ton-better-auth";

export const auth = betterAuth({
plugins: [
tonConnect({ allowedDomains: ["your-app.com"] }),
],
});

Works with @tonconnect/ui-react on the frontend and supports multi-wallet linking.

I also made AI skills for it:
npx skills add mhbdev/ton-better-auth


Let me know if you run into any issues or have feedback. Always happy to improve it.

Github - NPM Package - Skills
  • 👍 10
  • 🔥 7
  • 👏 3
  • 👀 1
More from @ai_dev_wall
  1. Aug 3, 2026🧠 The 2026 International Olympiad in Artificial Intelligence starts today. As a token of…
  2. Jun 23, 2026⭐️ Hoton-MCP is Live You can now purchase Telegram Stars, Premium and top-up your Telegram…
  3. Jun 19, 2026Teleton Agent v0.9.0 is here. New Cocoon provider. Fully redesigned WebUI. Smarter tool di…
  4. Jun 10, 2026We won the TON AI Agent Hackathon and turned the project into a live marketplace — ctlx.cc…
  5. Jun 9, 2026A quick update on the topic of the channel: in the major update to dTON’s liteservers, we’…
  6. Jun 5, 2026Hey Folks 🫡 I’m selling project . If you’re interested DM me
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →