@rpcbase/client 0.41.0 → 0.42.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/index.js +1 -1
- package/package.json +1 -1
package/auth/index.js
CHANGED
|
@@ -12,7 +12,7 @@ const log = debug("rb:auth")
|
|
|
12
12
|
// TODO: this should be refactored to AuthContext + Provider
|
|
13
13
|
|
|
14
14
|
let __is_authenticated = null
|
|
15
|
-
let __user_id = localStorage
|
|
15
|
+
let __user_id = typeof localStorage !== "undefined" && localStorage.getItem(UID_STORAGE_KEY)
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
const run_session_check = async() => {
|