60p82u21t54k 1.0.15 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/60p82u21t54k.cjs.js +1 -1
- package/dist/60p82u21t54k.es.js +35 -0
- package/dist/60p82u21t54k.umd.js +1 -1
- package/dist/api/login/loginApi.d.ts.map +1 -1
- package/dist/api/socialLogin/index.d.ts +3 -0
- package/dist/api/socialLogin/index.d.ts.map +1 -0
- package/dist/api/socialLogin/socialLoginApi.d.ts +3 -0
- package/dist/api/socialLogin/socialLoginApi.d.ts.map +1 -0
- package/dist/api/socialLogin/type.d.ts +5 -0
- package/dist/api/socialLogin/type.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/60p82u21t54k.es.js
CHANGED
|
@@ -10550,6 +10550,40 @@ const telegramLoginApi = async (data) => {
|
|
|
10550
10550
|
}
|
|
10551
10551
|
return result;
|
|
10552
10552
|
};
|
|
10553
|
+
const DefaultSocialLoginData = {
|
|
10554
|
+
data: {
|
|
10555
|
+
status: false,
|
|
10556
|
+
message: ""
|
|
10557
|
+
}
|
|
10558
|
+
};
|
|
10559
|
+
const socialLoginApi = async (loginToken, loginEmail, loginMethod) => {
|
|
10560
|
+
let result = {
|
|
10561
|
+
status: 200,
|
|
10562
|
+
message: "",
|
|
10563
|
+
...DefaultSocialLoginData
|
|
10564
|
+
};
|
|
10565
|
+
try {
|
|
10566
|
+
const payload = {
|
|
10567
|
+
token: loginToken,
|
|
10568
|
+
email: loginEmail,
|
|
10569
|
+
social_type: loginMethod
|
|
10570
|
+
};
|
|
10571
|
+
const request = await axiosInstance.post("/graph/socialLogin", payload);
|
|
10572
|
+
const output = request.data;
|
|
10573
|
+
result.data = {
|
|
10574
|
+
status: output.status == 1,
|
|
10575
|
+
message: output.errormessage ?? ""
|
|
10576
|
+
};
|
|
10577
|
+
} catch (error) {
|
|
10578
|
+
const extendedError = error;
|
|
10579
|
+
result = {
|
|
10580
|
+
status: extendedError.status || 500,
|
|
10581
|
+
message: error.message,
|
|
10582
|
+
...DefaultSocialLoginData
|
|
10583
|
+
};
|
|
10584
|
+
}
|
|
10585
|
+
return result;
|
|
10586
|
+
};
|
|
10553
10587
|
export {
|
|
10554
10588
|
AccumulateDepositStatus,
|
|
10555
10589
|
Api,
|
|
@@ -10573,5 +10607,6 @@ export {
|
|
|
10573
10607
|
post,
|
|
10574
10608
|
rename,
|
|
10575
10609
|
setLocaleApi,
|
|
10610
|
+
socialLoginApi,
|
|
10576
10611
|
telegramLoginApi
|
|
10577
10612
|
};
|