@turnkey/sdk-react 4.1.0 → 4.1.2

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.
@@ -66,7 +66,8 @@ var Auth = function Auth(_ref) {
66
66
  emailCustomization = _ref.emailCustomization,
67
67
  sendFromEmailAddress = _ref.sendFromEmailAddress,
68
68
  customSmsMessage = _ref.customSmsMessage,
69
- customAccounts = _ref.customAccounts;
69
+ customAccounts = _ref.customAccounts,
70
+ passkeyConfig = _ref.passkeyConfig;
70
71
  var _useTurnkey = useTurnkey(),
71
72
  authIframeClient = _useTurnkey.authIframeClient,
72
73
  passkeyClient = _useTurnkey.passkeyClient,
@@ -175,7 +176,7 @@ var Auth = function Auth(_ref) {
175
176
  };
176
177
  var handleSignupWithPasskey = /*#__PURE__*/function () {
177
178
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
178
- var siteInfo, _authConfig$sessionLe, _ref4, encodedChallenge, attestation, response;
179
+ var siteInfo, _authConfig$sessionLe, _passkeyConfig$name, _passkeyConfig$displa, _ref4, encodedChallenge, attestation, response;
179
180
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
180
181
  while (1) switch (_context2.prev = _context2.next) {
181
182
  case 0:
@@ -199,8 +200,8 @@ var Auth = function Auth(_ref) {
199
200
  return passkeyClient === null || passkeyClient === void 0 ? void 0 : passkeyClient.createUserPasskey({
200
201
  publicKey: {
201
202
  user: {
202
- name: siteInfo,
203
- displayName: siteInfo
203
+ name: (_passkeyConfig$name = passkeyConfig === null || passkeyConfig === void 0 ? void 0 : passkeyConfig.name) !== null && _passkeyConfig$name !== void 0 ? _passkeyConfig$name : siteInfo,
204
+ displayName: (_passkeyConfig$displa = passkeyConfig === null || passkeyConfig === void 0 ? void 0 : passkeyConfig.displayName) !== null && _passkeyConfig$displa !== void 0 ? _passkeyConfig$displa : siteInfo
204
205
  }
205
206
  }
206
207
  });