developers
JWT & QR Auth5 min read

प्रमाणीकरण, मोबाइल JWT रिफ्रेश और QR स्कैन लॉगिन

NextAuth कुकीज़ के माध्यम से वेब उपयोगकर्ताओं और Bearer JWT (`/api/mobile/login`, `/api/mobile/refresh`) तथा QR स्कैन-टू-लॉगिन के माध्यम से नेटिव क्लाइंट्स को प्रमाणित करें।

Key Capabilities & Takeaways

  • स्वचालित 401 टोकन रिफ्रेश कतार मोबाइल क्लाइंट पर समानांतर अनुरोध तूफान को रोकती है।

मोबाइल और डेस्कटॉप Bearer JWT प्रवाह

नेटिव क्लाइंट `POST /api/mobile/login` पर लॉगिन करते हैं, `Authorization: Bearer <access_token>` भेजते हैं और `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).