@medplum/react 0.9.26 → 0.9.27

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/cjs/index.js CHANGED
@@ -4958,9 +4958,9 @@
4958
4958
  return clientId;
4959
4959
  }
4960
4960
  const origin = window.location.protocol + '//' + window.location.host;
4961
- const authorizedOrigins = (_b = (_a = "http://localhost:3000,http://localhost:6006,https://app.medplum.com,https://docs.medplum.com") === null || _a === void 0 ? void 0 : _a.split(',')) !== null && _b !== void 0 ? _b : [];
4961
+ const authorizedOrigins = (_b = (_a = "undefined") === null || _a === void 0 ? void 0 : _a.split(',')) !== null && _b !== void 0 ? _b : [];
4962
4962
  if (authorizedOrigins.includes(origin)) {
4963
- return "921088377005-3j1sa10vr6hj86jgmdfh2l53v3mp7lfi.apps.googleusercontent.com";
4963
+ return "undefined";
4964
4964
  }
4965
4965
  return undefined;
4966
4966
  }
@@ -5017,7 +5017,17 @@
5017
5017
  React__default["default"].createElement(Form, { style: { maxWidth: 400 }, onSubmit: (formData) => __awaiter(this, void 0, void 0, function* () {
5018
5018
  try {
5019
5019
  const recaptchaToken = yield getRecaptcha(recaptchaSiteKey);
5020
- const registerRequest = Object.assign(Object.assign({}, formData), { recaptchaToken });
5020
+ const registerRequest = {
5021
+ projectId: props.projectId,
5022
+ projectName: formData.projectName,
5023
+ firstName: formData.firstName,
5024
+ lastName: formData.lastName,
5025
+ email: formData.email,
5026
+ password: formData.password,
5027
+ remember: formData.remember === 'true',
5028
+ recaptchaSiteKey,
5029
+ recaptchaToken,
5030
+ };
5021
5031
  const userLogin = yield medplum.startNewUser(registerRequest);
5022
5032
  handleAuthResponse(registerRequest, userLogin);
5023
5033
  }
@@ -5041,6 +5051,7 @@
5041
5051
  const userLogin = yield medplum.startGoogleLogin(loginRequest);
5042
5052
  const googleClaims = core.parseJWTPayload(loginRequest.googleCredential);
5043
5053
  const registerRequest = {
5054
+ projectId: props.projectId,
5044
5055
  firstName: googleClaims.given_name,
5045
5056
  lastName: googleClaims.family_name,
5046
5057
  email: googleClaims.email,