@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 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.7" });
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.7" });
879
+ this.sendRaw({ type: "auth", token, sdkVersion: "0.2.8" });
880
880
  }
881
881
  handleAuthStateChange(user) {
882
882
  if (user) {