MCPcopy Index your code
hub / github.com/OpenSignLabs/OpenSign / contractUsers

Function contractUsers

apps/OpenSign/src/constant/Utils.js:332–356  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

330
331//`contractUsers` function is used to get contract_User details
332export const contractUsers = async () => {
333 try {
334 const url = `${localStorage.getItem("baseUrl")}functions/getUserDetails`;
335 const parseAppId = localStorage.getItem("parseAppId");
336 const accesstoken = localStorage.getItem("accesstoken");
337 const token = { "X-Parse-Session-Token": accesstoken };
338 const headers = {
339 headers: {
340 "Content-Type": "application/json",
341 "X-Parse-Application-Id": parseAppId,
342 ...token
343 }
344 };
345 const userDetails = await axios.post(url, {}, headers);
346 let data = [];
347 if (userDetails?.data?.result) {
348 const json = JSON.parse(JSON.stringify(userDetails.data.result));
349 data.push(json);
350 }
351 return data;
352 } catch (err) {
353 console.log("Err in getUserDetails cloud function", err);
354 return "Error: Something went wrong!";
355 }
356};
357
358//function for resize image and update width and height for mulitisigners
359export const handleWidgetResize = (

Callers 5

getDocumentDetailsFunction · 0.90
getDocumentDetailsFunction · 0.90
TemplatePlaceholderFunction · 0.90
getDocumentDetailsFunction · 0.90
VerifyOTPFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected