@rpcbase/client 0.129.0 → 0.130.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/getTenantId.js +2 -2
- package/package.json +1 -1
package/auth/getTenantId.js
CHANGED
|
@@ -3,9 +3,9 @@ import {Platform} from "react-native"
|
|
|
3
3
|
|
|
4
4
|
import {getTenantId as _getTenantId} from "./index"
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const getTenantIdFn = Platform.OS === "web" ? _getTenantId : () => {
|
|
7
7
|
console.warn("native should not call getTenantId, use tenantId from AuthContext")
|
|
8
8
|
return null
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export default
|
|
11
|
+
export default getTenantIdFn
|