@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.js CHANGED
@@ -750,7 +750,7 @@ var DatabaseLiveClient = class {
750
750
  (refreshToken) => refreshAccessToken(this.baseUrl, refreshToken)
751
751
  );
752
752
  if (!token) throw new EdgeBaseError(401, "No access token available. Sign in first.");
753
- this.sendRaw({ type: "auth", token, sdkVersion: "0.2.7" });
753
+ this.sendRaw({ type: "auth", token, sdkVersion: "0.2.8" });
754
754
  return new Promise((resolve, reject) => {
755
755
  const timeout = setTimeout(() => reject(new EdgeBaseError(401, "Auth timeout")), 1e4);
756
756
  const original = this.ws?.onmessage;
@@ -870,7 +870,7 @@ var DatabaseLiveClient = class {
870
870
  refreshAuth() {
871
871
  const token = this.tokenManager.currentAccessToken;
872
872
  if (!token || !this.ws || !this.connected) return;
873
- this.sendRaw({ type: "auth", token, sdkVersion: "0.2.7" });
873
+ this.sendRaw({ type: "auth", token, sdkVersion: "0.2.8" });
874
874
  }
875
875
  handleAuthStateChange(user) {
876
876
  if (user) {