@edge-base/react-native 0.2.7 → 0.2.8
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/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -756,7 +756,7 @@ var DatabaseLiveClient = class {
|
|
|
756
756
|
(refreshToken) => refreshAccessToken(this.baseUrl, refreshToken)
|
|
757
757
|
);
|
|
758
758
|
if (!token) throw new core.EdgeBaseError(401, "No access token available. Sign in first.");
|
|
759
|
-
this.sendRaw({ type: "auth", token, sdkVersion: "0.2.
|
|
759
|
+
this.sendRaw({ type: "auth", token, sdkVersion: "0.2.8" });
|
|
760
760
|
return new Promise((resolve, reject) => {
|
|
761
761
|
const timeout = setTimeout(() => reject(new core.EdgeBaseError(401, "Auth timeout")), 1e4);
|
|
762
762
|
const original = this.ws?.onmessage;
|
|
@@ -876,7 +876,7 @@ var DatabaseLiveClient = class {
|
|
|
876
876
|
refreshAuth() {
|
|
877
877
|
const token = this.tokenManager.currentAccessToken;
|
|
878
878
|
if (!token || !this.ws || !this.connected) return;
|
|
879
|
-
this.sendRaw({ type: "auth", token, sdkVersion: "0.2.
|
|
879
|
+
this.sendRaw({ type: "auth", token, sdkVersion: "0.2.8" });
|
|
880
880
|
}
|
|
881
881
|
handleAuthStateChange(user) {
|
|
882
882
|
if (user) {
|