@formant/data-sdk 1.33.1 → 1.34.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.
@@ -217,10 +217,10 @@ class AuthenticationStore {
217
217
  isAuthenticated() {
218
218
  return this._token !== void 0;
219
219
  }
220
- async loginToPeer(t, n) {
220
+ async loginToPeer(t, n, r) {
221
221
  if ((await fetch(`${t}/login`, {
222
222
  method: "POST",
223
- body: JSON.stringify({ password: n }),
223
+ body: JSON.stringify({ username: n, password: r }),
224
224
  headers: {
225
225
  "Content-Type": "application/json"
226
226
  }