Fix: Add header in every API call.

" 'X-Login-Type': 'IB',"
This commit is contained in:
2025-10-27 11:56:36 +05:30
parent 3f1bbf1a4c
commit 7ba258dc21
25 changed files with 55 additions and 13 deletions

View File

@@ -175,6 +175,7 @@ export default function ChangePassword() {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-Login-Type": "IB",
Authorization: `Bearer ${token}`,
},
body: JSON.stringify({

View File

@@ -183,6 +183,7 @@ export default function ChangePassword() {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-Login-Type": "IB",
Authorization: `Bearer ${token}`,
},
body: JSON.stringify({

View File

@@ -40,6 +40,7 @@ export default function ViewProfile() {
method: "GET",
headers: {
"Content-Type": "application/json",
"X-Login-Type": "IB",
Authorization: `Bearer ${token}`,
},
});

View File

@@ -190,6 +190,7 @@ export default function ChangePassword() {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-Login-Type": "IB",
Authorization: `Bearer ${token}`,
},
body: JSON.stringify({

View File

@@ -63,6 +63,7 @@ export default function SetPreferredNameSimple() {
method: "GET",
headers: {
"Content-Type": "application/json",
"X-Login-Type": "IB",
Authorization: `Bearer ${token}`,
},
});
@@ -167,6 +168,7 @@ export default function SetPreferredNameSimple() {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-Login-Type": "IB",
Authorization: `Bearer ${token}`,
},
body: JSON.stringify({ user_name: preferredName }),