developers
JWT & QR Auth5 min read

المصادقة، رموز JWT لتطبيقات الجوال والدخول عبر QR

مصادقة الويب عبر NextAuth وتطبيقات الجوال عبر Bearer JWT مع تجديد تلقائي وتسجيل الدخول السريع عبر رمز 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).