Auto-login requires a base32 TOTP secret in the server .env as ZERODHA_TOTP_SECRET.

Setup steps

  1. Log in to Kite web
  2. Go to My Profile → Password & Security
  3. Enable External TOTP (two-factor authentication)
  4. Choose Can’t scan? Copy key and save the base32 secret as ZERODHA_TOTP_SECRET

Required environment variables

Add these to the server .env file. Do not commit real values to git.