fix: set setActivePortalMasterKey on login when storage event is triggered
This commit is contained in:
parent
20641e35d3
commit
b6a7b138eb
|
@ -1,4 +1,9 @@
|
||||||
import { addContextToErr, bytesToHex, hexToBytes } from "@lumeweb/libweb";
|
import {
|
||||||
|
addContextToErr,
|
||||||
|
bytesToHex,
|
||||||
|
hexToBytes,
|
||||||
|
setActivePortalMasterKey,
|
||||||
|
} from "@lumeweb/libweb";
|
||||||
import {
|
import {
|
||||||
getLoginComplete,
|
getLoginComplete,
|
||||||
getLogoutComplete,
|
getLogoutComplete,
|
||||||
|
@ -38,6 +43,7 @@ function handleStorage(event: StorageEvent) {
|
||||||
}
|
}
|
||||||
|
|
||||||
log("user is now logged in, attempting to load kernel");
|
log("user is now logged in, attempting to load kernel");
|
||||||
|
setActivePortalMasterKey(userKey);
|
||||||
setLoginComplete(true);
|
setLoginComplete(true);
|
||||||
loadKernel();
|
loadKernel();
|
||||||
sendAuthUpdate();
|
sendAuthUpdate();
|
||||||
|
|
Reference in New Issue