@rpcbase/client 0.93.0 → 0.94.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/auth/SignUp/index.js +1 -1
- package/auth/index.js +9 -2
- package/auth/sign_out.js +2 -1
- package/package.json +1 -1
- package/rts/index.js +0 -1
package/auth/SignUp/index.js
CHANGED
|
@@ -35,7 +35,7 @@ const SignUp = ({
|
|
|
35
35
|
set_tenant_id(user_id.slice(0, 8))
|
|
36
36
|
set_is_signed_in(true)
|
|
37
37
|
|
|
38
|
-
// we must now reconnect on the websocket as we
|
|
38
|
+
// we must now reconnect on the websocket as we have a new cookie
|
|
39
39
|
rts_reconnect()
|
|
40
40
|
onSuccess()
|
|
41
41
|
page(onSuccessRedirect)
|
package/auth/index.js
CHANGED
|
@@ -107,10 +107,17 @@ export const session_restrict = (ctx, next) => {
|
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
export const get_uid = () => __user_id
|
|
110
|
-
export const set_uid = (val) =>
|
|
110
|
+
export const set_uid = (val) => {
|
|
111
|
+
__user_id = val
|
|
112
|
+
const tenant_id_prefix = val.slice(0, 8)
|
|
113
|
+
localStorage.setItem(uid_storage_key(tenant_id_prefix), val)
|
|
114
|
+
}
|
|
111
115
|
|
|
112
116
|
export const get_tenant_id = () => __tenant_id
|
|
113
|
-
export const set_tenant_id = (val) =>
|
|
117
|
+
export const set_tenant_id = (val) => {
|
|
118
|
+
__tenant_id = val
|
|
119
|
+
localStorage.setItem(LAST_TENANT_KEY, val)
|
|
120
|
+
}
|
|
114
121
|
|
|
115
122
|
export const set_is_signed_in = (val) => __is_authenticated = val
|
|
116
123
|
|
package/auth/sign_out.js
CHANGED
package/package.json
CHANGED
package/rts/index.js
CHANGED
|
@@ -177,7 +177,6 @@ export const register_query = (model_name, query, _options, _callback) => {
|
|
|
177
177
|
|
|
178
178
|
log("register_query", {model_name, query, options, callback})
|
|
179
179
|
|
|
180
|
-
|
|
181
180
|
if (!_socket) {
|
|
182
181
|
log("register_query: trying to use null socket", {model_name, query})
|
|
183
182
|
return
|