shogun-core 3.0.2 → 3.0.3
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.
|
@@ -104,7 +104,7 @@ export class CoreInitializer {
|
|
|
104
104
|
*/
|
|
105
105
|
async initializeGunUser() {
|
|
106
106
|
try {
|
|
107
|
-
this.core.
|
|
107
|
+
this.core._user = this.core.gun.user().recall({ sessionStorage: true });
|
|
108
108
|
}
|
|
109
109
|
catch (error) {
|
|
110
110
|
if (typeof console !== "undefined" && console.error) {
|
|
@@ -113,7 +113,7 @@ export class CoreInitializer {
|
|
|
113
113
|
throw new Error(`Failed to initialize Gun user: ${error}`);
|
|
114
114
|
}
|
|
115
115
|
this.core.gun.on("auth", (user) => {
|
|
116
|
-
this.core.
|
|
116
|
+
this.core._user = this.core.gun.user().recall({ sessionStorage: true });
|
|
117
117
|
this.core.emit("auth:login", {
|
|
118
118
|
userPub: user.pub,
|
|
119
119
|
method: "password",
|