fix : X header add for E mandate
This commit is contained in:
@@ -127,7 +127,7 @@ export default function MandatePage() {
|
||||
method: "GET",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
'X-Login-Type': 'emandate',
|
||||
'X-Login-Type': 'eMandate',
|
||||
Authorization: `Bearer ${token}`,
|
||||
},
|
||||
});
|
||||
@@ -182,7 +182,7 @@ export default function MandatePage() {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
'X-Login-Type': 'emandate',
|
||||
'X-Login-Type': 'eMandate',
|
||||
},
|
||||
body: JSON.stringify({
|
||||
mobileNumber: localStorage.getItem("userMobNo"),
|
||||
@@ -220,7 +220,7 @@ export default function MandatePage() {
|
||||
try {
|
||||
const response = await fetch("/api/otp/send", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json",'X-Login-Type': 'emandate' },
|
||||
headers: { "Content-Type": "application/json",'X-Login-Type': 'eMandate' },
|
||||
body: JSON.stringify({
|
||||
mobileNumber: localStorage.getItem("userMobNo"),
|
||||
type: "EMandate",
|
||||
@@ -264,7 +264,7 @@ export default function MandatePage() {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
'X-Login-Type': 'emandate',
|
||||
'X-Login-Type': 'eMandate',
|
||||
},
|
||||
body: JSON.stringify({
|
||||
otp: otp,
|
||||
|
||||
Reference in New Issue
Block a user