developers
JWT & QR Auth5 min read
Tabbatarwa, JWT na Wayar Hannu & Shiga ta QR
Masu amfani da Web suna shiga ta NextAuth, manhajoji kuma ta Bearer JWT (`/api/mobile/login`, `/api/mobile/refresh`) da QR Code.
Key Capabilities & Takeaways
- Tsarin sabunta token yana hana yawaitar buƙatun 401.
Yadda Bearer JWT Ke Aiki a Wayar Hannu da Kwamfuta
Manhajojin suna shiga ta `POST /api/mobile/login`, su saka `Authorization: Bearer <access_token>` kuma su sabunta ta `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?