You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a ? (b.log("LocalStorageUserStore.setToken", a), localStorage[d] = a) :(b.log("LocalStorageUserStore.setToken", a, "deleting"), localStorage.removeItem(d));
20411
+
setToken:function(a, c) {
20412
+
a ? (b.log("LocalStorageUserStore.setToken", a, c), localStorage[d] = a, f(d, c)) :(b.log("LocalStorageUserStore.setToken", a, c, "deleting"), localStorage.removeItem(d), f(d, null));
20399
20413
}
20400
20414
};
20401
20415
} ];
@@ -20430,12 +20444,12 @@ withUser:function() {
20430
20444
var a = p.getUser();
20431
20445
return a ? (h.user = a, j.log("AuthService.withUser()", a), e.when(a)) :(j.log("AuthService.withUser(), calling startLogin()"), this.startLogin());
20432
20446
},
20433
-
setUser:function(a, b) {
20434
-
j.log("AuthService.setUser()", a, b);
20435
-
var c = p.getUser();
20436
-
p.setUser(a), p.setToken(b), h.user = a;
20437
-
var d = c && c.metadata && c.metadata.name, e = a && a.metadata && a.metadata.name;
20438
-
d != e && (j.log("AuthService.setUser(), user changed", c, a), m.fire(a));
20447
+
setUser:function(a, b, c) {
20448
+
j.log("AuthService.setUser()", a, b, c);
20449
+
var d = p.getUser();
20450
+
p.setUser(a, c), p.setToken(b, c), h.user = a;
20451
+
var e = d && d.metadata && d.metadata.name, f = a && a.metadata && a.metadata.name;
20452
+
e != f && (j.log("AuthService.setUser(), user changed", d, a), m.fire(a));
20439
20453
},
20440
20454
requestRequiresAuth:function(a) {
20441
20455
var b = a.url.toString().indexOf("api/") > 0;
@@ -20451,7 +20465,7 @@ startLogin:function() {
20451
20465
if (n) return j.log("Login already in progress"), n;
0 commit comments