OPTXOPTX DOCS
JettChat

xChat Native

602020

JettChat xChat Native mode — Privy in DOJO, @jettoptx/auth for custom integrations.

xChat Native is the original JettChat experience: sign in, pass the JTX gate, get end-to-end encrypted chat with gaze cursor typing.

DOJO vs Custom Integration

DOJO (jettoptx.chat)Custom App
AuthPrivy@jettoptx/auth from SDK
Repojettoptx-jettchat-appYour app + SDK

The DOJO product uses Privy as its primary auth provider. Developers building separate xChat Native clients should install @jettoptx/auth from the jettoptx-sdk monorepo.

OAuth flow (Integrators)

Sign-in uses X/Twitter OAuth 2.0 PKCE with scopes: tweet.read, tweet.write, users.read, dm.read, dm.write, offline.access.

After the authorization-code exchange:

  1. The auth route generates a fresh PKCE code verifier/challenge.
  2. On callback, the SDK exchanges the code for tokens.
  3. An Ed25519 JWT is signed by @jettoptx/auth and dropped into the jettauth httpOnly cookie.

JTX gate

After sign-in, middleware enforces JTX access on protected routes:

Code tierJTX heldMaps to
basic≥ 1Base entry — JettChat access
mojo≥ 12MOJO subscription tier
dojo≥ 444DOJO subscription tier
spaceCowboy≥ 1,111SPACE COWBOY subscription tier

Canonical mint: JTXGnx83s2QZ2MwYkRD1cBKrqQKSdG5oe8vSYW5Zjoe (v2). Wallet-less subscription entitlements use the same tier codes — pricing on astroknots.space/stake.

What's wired up

  • Privy auth in DOJO production app
  • @jettoptx/auth for SDK integrators
  • Solana JTX balance check via Helius RPC
  • AGT Gaze Triad biometrics (shared with Phantom Mode)
  • Optional Stripe / Tempo CLI rails (product site — not hardcoded in integrator apps)

Phantom Mode contrast

For maximum privacy, see Phantom Mode — Tor hidden services, post-quantum hybrid encryption, and hardware-backed keys via Secure-Legion.