Skip to content

v0.2.4

Latest

Choose a tag to compare

@github-actions github-actions released this 14 Sep 17:27
· 5 commits to main since this release

ton-better-auth

0.2.1

Patch Changes

  • fd335da Thanks @mhbdev! - Adjusted the hook’s client contract so createAuthClient(...).tonConnect is assignable without TS2322.

0.2.0

Minor Changes

  • a254331 Thanks @mhbdev! - Add major TON Connect plugin enhancements across server, client, and React DX:

    • add set-primary and switch-session-wallet authenticated 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/react with useTonConnectAuth for challenge refresh + verify lifecycle + typed auth errors

0.1.3

Patch Changes

  • 60cedd1 Thanks @mhbdev! - Support for allowed wallet versions for wallet connection verification

0.1.2

Patch Changes

  • 6f3bb5f Thanks @mhbdev! - Fix wallet primary-state handling to consistently enforce a single primary wallet per user.

    • Normalize wallet primary flags in transactional verify, link, and unlink flows.
    • Self-heal inconsistent states where a user has zero or multiple primary wallets.
    • Add integration tests covering missing-primary and duplicate-primary wallet scenarios.