Skip to content
Snippets Groups Projects
Commit 2caccaa1 authored by Sasha Ilieva's avatar Sasha Ilieva
Browse files

check currentlyLoadedIdentity

parent b8b22ed0
No related branches found
No related tags found
1 merge request!101Use loadedIdentities
Pipeline #31622 passed with stages
in 7 minutes and 38 seconds
......@@ -280,6 +280,10 @@ const handleIdentityLogin = (identity, uuid, token) => {
console.log({ identity });
const { viamApi, loadedIdentities } = window;
const { publicKey } = identity.authentication;
console.log("currently loaded", window.currentlyLoadedIdentity);
console.log(
publicKey === window.currentlyLoadedIdentity.authentication.publicKey
);
console.log("handleIdentityLogin", loadedIdentities[publicKey]);
viamApi.setSessionData(uuid, token);
localStorage.setItem("uuid", uuid);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment