Repository navigation
ton-better-auth
0.2.1
Patch Changes
fd335daThanks @mhbdev! - Adjusted the hook’s client contract so createAuthClient(...).tonConnect is assignable without TS2322.
0.2.0
Minor Changes
-
a254331Thanks @mhbdev! - Add major TON Connect plugin enhancements across server, client, and React DX:- add
set-primaryandswitch-session-walletauthenticated endpoints for explicit primary-wallet and active-session wallet control - upgrade domain allow-listing with wildcard support and per-network domain policies
- add configurable anti-abuse controls (per-IP/per-address limits, failed-verify cooldown, optional captcha hooks)
- add configurable multi-wallet auth rules (
onlyPrimaryCanSignIn,allowOnlyLinkedWallets,autoLinkOnVerify) - add lifecycle event hooks (
onChallengeIssued,onVerifySuccess,onVerifyFail,onWalletLinked) - add
ton-better-auth/reactwithuseTonConnectAuthfor challenge refresh + verify lifecycle + typed auth errors
- add
0.1.3
Patch Changes
0.1.2
Patch Changes
-
6f3bb5fThanks @mhbdev! - Fix wallet primary-state handling to consistently enforce a single primary wallet per user.- Normalize wallet primary flags in transactional
verify,link, andunlinkflows. - Self-heal inconsistent states where a user has zero or multiple primary wallets.
- Add integration tests covering missing-primary and duplicate-primary wallet scenarios.
- Normalize wallet primary flags in transactional