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:
Browser / React / Vue
Zero runtime deps, WebOTP auto-read, script-tag build included.
npm install @quick-auth/web-sdkReact NativeCross-platform mobile
One JS API, native modules under the hood for SMS Retriever + oneTimeCode.
npm install @quick-auth/react-native-sdk @react-native-async-storage/async-storageiOSNative Swift
Pure Swift, SwiftUI + UIKit components, SPM and CocoaPods.
pod 'QuickAuthIn', '~> 1.1.0'AndroidNative Kotlin
Jetpack Compose components, SMS Retriever auto-fill — no permission prompt.
implementation('in.quickauth:sdk:1.1.0')FlutterSingle Dart package
Material widgets + iOS/Android native bridges shipped together.
flutter pub add quickauthNo SDKHTTP API directly
Hit our REST endpoints from any language. Useful for server-to-server flows or unsupported stacks.
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.