@insforge/react 0.7.4-dev.0 → 0.7.4-dev.1

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
@@ -282,7 +282,7 @@ var InsforgeManager = class _InsforgeManager {
282
282
  const sdkResult = await this.sdk.auth.signInWithPassword({
283
283
  email,
284
284
  password,
285
- hostedMode: this.config.hostedMode
285
+ hostedMode: this.config.hostedMode ?? false
286
286
  });
287
287
  if (sdkResult.data) {
288
288
  await this.handleAuthSuccess(
@@ -303,7 +303,7 @@ var InsforgeManager = class _InsforgeManager {
303
303
  }
304
304
  }
305
305
  async signUp(email, password) {
306
- const sdkResult = await this.sdk.auth.signUp({ email, password });
306
+ const sdkResult = await this.sdk.auth.signUp({ email, password, hostedMode: this.config.hostedMode ?? false });
307
307
  if (sdkResult.data) {
308
308
  if (sdkResult.data.accessToken) {
309
309
  await this.handleAuthSuccess(