developers
JWT & QR Auth5 min read
Kimlik Doğrulama, Mobil JWT Yenileme ve QR ile Giriş
Web kullanıcıları NextAuth ile, yerel istemciler Bearer JWT (`/api/mobile/login`, `/api/mobile/refresh`) ve QR tarama ile kimlik doğrular.
Key Capabilities & Takeaways
- Otomatik 401 jeton yenileme kuyruğu mobilde paralel istek çakışmalarını önler.
Mobil ve Masaüstü Bearer JWT Akışı
Yerel istemciler `POST /api/mobile/login` ile giriş yapar, `Authorization: Bearer <access_token>` gönderir ve `POST /api/mobile/refresh` ile yeniler.
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?