Get started

Quickstart

From install to verified user in five minutes. Each stack picks up the same four-step shape — install, initialize, ask for an OTP, verify it.

1. Grab your API keys

Sign in to the QuickAuth dashboard at dashboard.quickauth.in. Your client id and secret are under Settings → API credentials; the publishable key (pk_live_…) is under Settings → SDK publishable key. There is no separate test mode — there is one live environment, so test with your own phone number.

Public vs secret

The pk_live_… publishable key (sent as X-QuickAuth-Key) is safe to ship in your client bundle. The client secret (qa_sk_…) stays on your backend and is only used to mint short-lived session tokens — see Backend integration.

2. Pick your stack

Open the SDK page that matches what you’re building:

3. Wire your backend (5 lines)

For production traffic — never embed the qa_sk_… client secret in a mobile app or browser bundle — expose a thin endpoint that mints a one-hour session token ({ sessionToken, expiresIn: 3600, tokenType: "Bearer" }). The SDK calls it whenever it needs to refresh.

// POST /api/quickauth-token
app.post('/api/quickauth-token', requireAuth, async (req, res) => {
  const r = await fetch('https://api.quickauth.in/v1/sdk/session', {
    method: 'POST',
    headers: {
      'X-Client-Id':     process.env.QUICKAUTH_CLIENT_ID,
      'X-Client-Secret': process.env.QUICKAUTH_CLIENT_SECRET,
    },
  })
  res.json(await r.json())
})

4. Run your first OTP

Continue on the SDK page you opened above — each one has a copy-paste “first OTP” block under Headless OTP. You’ll be at a working OTP screen on real device in 5 minutes flat.

Chat with us