Kite Connect OAuth flow
Broker connection uses the official Zerodha Kite Connect OAuth 2.0 authorisation flow. When you connect, you are redirected to Zerodha's login and consent screens. Cognitosphere never receives your Zerodha password, OTP, or PIN.
After you approve access, Zerodha redirects to our registered HTTPS callback endpoint:
Registered redirect URI
https://nerveqi.com/api/kite/callback
Token exchange completes entirely on the server. Request tokens and access tokens are never written to browser storage or exposed to client-side code.
Scope of broker access
Nerve uses Kite Connect for read-only portfolio operations: holdings, positions, and metadata required to display your dashboard and sync snapshots to authorised hardware.
- No order placement, modification, or cancellation
- No fund transfers or withdrawals
- No storage of Zerodha login credentials
- Devices receive portfolio snapshots—not broker tokens
Token encryption & storage
Kite access tokens are encrypted with AES-256-GCM using a dedicated server-side key before being stored in PostgreSQL. Each record uses a unique initialization vector and authentication tag. Decryption occurs only inside authenticated server processes during an authorised sync.
Database access is restricted to application services. Row-level controls and authenticated API routes ensure each user accesses only their own portfolio and device records.
Authentication & sessions
User accounts use enterprise-grade identity management with secure session handling. All dashboard and API routes require a valid authenticated session. Connected devices use separate hardware-bound session tokens stored as one-way hashes.
All traffic is served over TLS. Session cookies use secure, HTTP-only attributes.
Data infrastructure
- PostgreSQL — encrypted relational storage for profiles, broker connections, and portfolio snapshots
- Application services — server-side API execution with no client-side token handling
- Zerodha Kite Connect — broker OAuth and portfolio API, invoked only after your explicit consent
Your controls
Disconnect Kite from your dashboard at any time. Revoke third-party app access from your Zerodha account settings. Account deletion requests are handled per our Privacy Policy.
Responsible disclosure
Security researchers and broker compliance teams may report concerns to santhosh@hmct.in.