developers
JWT & QR Auth5 min read

Authentication, Mobile JWT Refresh & QR Scan-to-Login

Authenticate web users via NextAuth HTTP cookies and native desktop/mobile clients via Bearer JWT access & refresh tokens (`/api/mobile/login`, `/api/mobile/refresh`), plus passwordless QR Scan-to-Login (`/api/auth/qr/generate`).

Key Capabilities & Takeaways

  • Automatic 401 token refresh queueing prevents parallel request storms on mobile clients.

Mobile & Desktop Bearer JWT Flow

Native clients exchange credentials at `POST /api/mobile/login`, attach `Authorization: Bearer <access_token>` to operational requests, and rotate expired tokens via `POST /api/mobile/refresh`.

const res = await fetch('https://app.inzorasuite.com/api/mobile/login', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ email, password }),
});
const { access_token, refresh_token } = await res.json();
API Sandbox

Execute allowlisted public IBS endpoints live · Zero credentials required

Was this handbook guide helpful?
Initiative Tech Solutions Ltd · Kigali, Rwanda

Ready to run your operations on Inzora Business Suite?

Start your 7-day free trial, explore live businesses on our directory, or contact our team at [email protected] (+250 791 891 254).