monoidentity 0.23.0 → 0.24.0
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/storage.js +1 -5
- package/package.json +1 -1
package/dist/storage.js
CHANGED
|
@@ -9,10 +9,6 @@ import { switchToHub } from "./utils-hub.js";
|
|
|
9
9
|
const LOGIN_RECOGNIZED_PATH = ".local/login.encjson";
|
|
10
10
|
export const getLoginRecognized = () => {
|
|
11
11
|
const client = storageClient();
|
|
12
|
-
if (client[".core/login.encjson"]) {
|
|
13
|
-
client[LOGIN_RECOGNIZED_PATH] = client[".core/login.encjson"];
|
|
14
|
-
delete client[".core/login.encjson"];
|
|
15
|
-
}
|
|
16
12
|
const login = client[LOGIN_RECOGNIZED_PATH];
|
|
17
13
|
if (!login)
|
|
18
14
|
throw new Error("No login found");
|
|
@@ -25,7 +21,7 @@ export const setLoginRecognized = (login) => {
|
|
|
25
21
|
export const relog = () => {
|
|
26
22
|
switchToHub([{ loginRecognized: true }]);
|
|
27
23
|
};
|
|
28
|
-
const VERIFICATION_PATH = ".
|
|
24
|
+
const VERIFICATION_PATH = ".local/verification.jwt";
|
|
29
25
|
export const getVerification = async () => {
|
|
30
26
|
const client = storageClient();
|
|
31
27
|
const jwt = client[VERIFICATION_PATH];
|