xChat Native
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 | |
|---|---|---|
| Auth | Privy | @jettoptx/auth from SDK |
| Repo | jettoptx-jettchat-app | Your 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:
- The auth route generates a fresh PKCE code verifier/challenge.
- On callback, the SDK exchanges the code for tokens.
- An Ed25519 JWT is signed by
@jettoptx/authand dropped into thejettauthhttpOnly cookie.
JTX gate
After sign-in, middleware enforces JTX access on protected routes:
| Code tier | JTX held | Maps to |
|---|---|---|
basic | ≥ 1 | Base entry — JettChat access |
mojo | ≥ 12 | MOJO subscription tier |
dojo | ≥ 444 | DOJO subscription tier |
spaceCowboy | ≥ 1,111 | SPACE 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/authfor 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.