MCPcopy Create free account
hub / github.com/OpenSignLabs/OpenSign / checkUserExt

Function checkUserExt

apps/OpenSign/src/pages/Login.jsx:75–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73 };
74
75 const checkUserExt = async () => {
76 const app = await getAppLogo();
77 if (app?.error === "invalid_json") {
78 setErrMsg(t("server-down", { appName: appName }));
79 } else if (
80 app?.user === "not_exist"
81 ) {
82 navigate("/addadmin");
83 }
84 if (app?.logo) {
85 setImage(app?.logo);
86 } else {
87 setImage(appInfo?.applogo || undefined);
88 }
89 dispatch(fetchAppInfo());
90 if (localStorage.getItem("accesstoken")) {
91 setState({ ...state, loading: true });
92 GetLoginData();
93 }
94 };
95 const handleChange = (event) => {
96 let { name, value } = event.target;
97 if (name === "email") {

Callers 1

handleUserExistFunction · 0.85

Calls 2

getAppLogoFunction · 0.90
GetLoginDataFunction · 0.85

Tested by

no test coverage detected