const getDeviceShare = async () => {
try {
console.log("Start get device share....;")
const share = await (
tKey.modules.webStorage as WebStorageModule
).getDeviceShare();
console.log("End get device share....;", share)
if (share) {
uiConsole(
"Device Share Captured Successfully across",
JSON.stringify(share)
);
setRecoveryShare(share.share.share.toString("hex"));
return share;
}
uiConsole("Device Share Not found");
return null;
} catch (error) {
uiConsole(“Error”, (error as any)?.message.toString(), “error”);
}
};
if i’m register user first time then he got a share detail, but second time he not. why??
got an error:
Error unableToReadFromStorageError inputShareFromWebStorage: No share exists in localstorage and {“name”:“NotFoundError”,“message”:“A requested file or directory could not be found at the time an operation was processed.”} error