auth0-lock 12.4.0 → 12.5.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.
- package/.github/workflows/test.yml +1 -1
- package/.version +1 -1
- package/CHANGELOG.md +5 -0
- package/Makefile +1 -1
- package/README.md +1 -1
- package/lib/__tests__/connection/database/actions.js +1 -1
- package/lib/__tests__/connection/database/index.js +1 -1
- package/lib/__tests__/connection/database/login_pane.js +1 -1
- package/lib/__tests__/connection/database/password_reset_confirmation.js +1 -1
- package/lib/__tests__/connection/database/signed_up_confirmation.js +1 -1
- package/lib/__tests__/connection/enterprise/actions.js +1 -1
- package/lib/__tests__/connection/enterprise/hrd_pane.js +1 -1
- package/lib/__tests__/connection/enterprise/hrd_screen.js +1 -1
- package/lib/__tests__/connection/enterprise/quick_auth_screen.js +1 -1
- package/lib/__tests__/connection/passwordless/ask_vcode.js +1 -1
- package/lib/__tests__/connection/passwordless/email_sent_confirmation.js +1 -1
- package/lib/__tests__/core/actions.js +2 -2
- package/lib/__tests__/core/remote_data.js +1 -1
- package/lib/__tests__/core/signed_in_confirmation.js +1 -1
- package/lib/__tests__/core/sso/last_login_screen.js +1 -1
- package/lib/__tests__/core/tenant.js +1 -1
- package/lib/__tests__/core/web_api.js +1 -1
- package/lib/__tests__/engine/classic.js +1 -1
- package/lib/__tests__/field/captcha/third_party_captcha.js +1 -1
- package/lib/__tests__/field/field.js +1 -1
- package/lib/__tests__/i18n.js +1 -1
- package/lib/__tests__/testUtils.js +2 -2
- package/lib/__tests__/ui/box/chrome.js +1 -1
- package/lib/__tests__/ui/box/confirmation_pane.js +1 -1
- package/lib/avatar.js +1 -1
- package/lib/connection/captcha.js +54 -20
- package/lib/connection/database/actions.js +19 -8
- package/lib/connection/database/index.js +1 -1
- package/lib/connection/database/login_pane.js +11 -13
- package/lib/connection/database/login_sign_up_tabs.js +13 -17
- package/lib/connection/database/mfa_pane.js +8 -10
- package/lib/connection/database/password_reset_confirmation.js +9 -11
- package/lib/connection/database/reset_password.js +12 -16
- package/lib/connection/database/reset_password_pane.js +20 -12
- package/lib/connection/database/signed_up_confirmation.js +9 -11
- package/lib/connection/enterprise/actions.js +4 -4
- package/lib/connection/enterprise/hrd_pane.js +10 -12
- package/lib/connection/enterprise/hrd_screen.js +9 -11
- package/lib/connection/enterprise/kerberos_screen.js +9 -11
- package/lib/connection/enterprise/quick_auth_screen.js +9 -11
- package/lib/connection/enterprise.js +1 -1
- package/lib/connection/passwordless/actions.js +7 -7
- package/lib/connection/passwordless/ask_vcode.js +8 -10
- package/lib/connection/passwordless/email_sent_confirmation.js +16 -22
- package/lib/connection/passwordless/index.js +1 -1
- package/lib/connection/social/index.js +1 -1
- package/lib/core/actions.js +2 -2
- package/lib/core/client/index.js +2 -2
- package/lib/core/client/settings.js +1 -1
- package/lib/core/error_screen.js +9 -11
- package/lib/core/index.js +13 -4
- package/lib/core/loading_screen.js +12 -16
- package/lib/core/remote_data.js +9 -1
- package/lib/core/screen.js +3 -4
- package/lib/core/signed_in_confirmation.js +9 -11
- package/lib/core/sso/last_login_screen.js +9 -11
- package/lib/core/tenant/index.js +2 -2
- package/lib/core/tenant/settings.js +1 -1
- package/lib/core/web_api/helper.js +3 -3
- package/lib/core/web_api/p2_api.js +8 -3
- package/lib/core/web_api.js +7 -3
- package/lib/core.js +12 -14
- package/lib/engine/classic/login.js +9 -11
- package/lib/engine/classic/mfa_login_screen.js +9 -11
- package/lib/engine/classic/sign_up_pane.js +10 -12
- package/lib/engine/classic/sign_up_screen.js +9 -11
- package/lib/engine/classic.js +3 -4
- package/lib/engine/passwordless/social_or_email_login_screen.js +11 -13
- package/lib/engine/passwordless/social_or_phone_number_login_screen.js +11 -13
- package/lib/engine/passwordless.js +3 -4
- package/lib/field/captcha/captcha_pane.js +16 -15
- package/lib/field/captcha/third_party_captcha.js +8 -10
- package/lib/field/custom_input.js +1 -1
- package/lib/field/email/email_pane.js +9 -11
- package/lib/field/email.js +1 -1
- package/lib/field/index.js +1 -1
- package/lib/field/mfa-code/mfa_code_pane.js +9 -11
- package/lib/field/password/password_pane.js +11 -13
- package/lib/field/phone-number/phone_number_pane.js +10 -12
- package/lib/field/social/event.js +1 -1
- package/lib/field/social/social_buttons_pane.js +9 -11
- package/lib/field/username/username_pane.js +9 -11
- package/lib/field/vcode/vcode_pane.js +11 -13
- package/lib/i18n/af.js +3 -1
- package/lib/i18n/ar.js +3 -1
- package/lib/i18n/az.js +3 -1
- package/lib/i18n/bg.js +3 -1
- package/lib/i18n/ca.js +3 -1
- package/lib/i18n/cs.js +3 -1
- package/lib/i18n/da.js +3 -1
- package/lib/i18n/de.js +3 -1
- package/lib/i18n/el.js +3 -1
- package/lib/i18n/en.js +3 -1
- package/lib/i18n/es.js +3 -1
- package/lib/i18n/et.js +3 -1
- package/lib/i18n/fa.js +3 -1
- package/lib/i18n/fi.js +3 -1
- package/lib/i18n/fr.js +3 -1
- package/lib/i18n/he.js +3 -1
- package/lib/i18n/hr.js +3 -1
- package/lib/i18n/hu.js +3 -1
- package/lib/i18n/id.js +3 -1
- package/lib/i18n/it.js +3 -1
- package/lib/i18n/ja.js +3 -1
- package/lib/i18n/ko.js +3 -1
- package/lib/i18n/lt.js +3 -1
- package/lib/i18n/lv.js +3 -1
- package/lib/i18n/ms.js +3 -1
- package/lib/i18n/nb.js +3 -1
- package/lib/i18n/nl.js +3 -1
- package/lib/i18n/nn.js +3 -1
- package/lib/i18n/no.js +3 -1
- package/lib/i18n/pl.js +3 -1
- package/lib/i18n/pt-br.js +3 -1
- package/lib/i18n/pt.js +3 -1
- package/lib/i18n/ro.js +3 -1
- package/lib/i18n/ru.js +3 -1
- package/lib/i18n/sk.js +3 -1
- package/lib/i18n/sl.js +3 -1
- package/lib/i18n/sr.js +3 -1
- package/lib/i18n/sv.js +3 -1
- package/lib/i18n/tr.js +3 -1
- package/lib/i18n/ua.js +3 -1
- package/lib/i18n/uk.js +3 -1
- package/lib/i18n/vi.js +3 -1
- package/lib/i18n/zh-tw.js +3 -1
- package/lib/i18n/zh.js +3 -1
- package/lib/i18n.js +2 -2
- package/lib/lock.js +9 -10
- package/lib/passwordless.js +9 -10
- package/lib/quick-auth/actions.js +2 -2
- package/lib/sync.js +1 -1
- package/lib/ui/box/chrome.js +12 -16
- package/lib/ui/box/confirmation_pane.js +1 -1
- package/lib/ui/box/container.js +10 -13
- package/lib/ui/box/global_message.js +8 -10
- package/lib/ui/box/header.js +18 -26
- package/lib/ui/box/multisize_slide.js +12 -16
- package/lib/ui/box.js +3 -5
- package/lib/ui/input/captcha_input.js +13 -15
- package/lib/ui/input/checkbox_input.js +8 -10
- package/lib/ui/input/email_input.js +9 -11
- package/lib/ui/input/input_wrap.js +8 -10
- package/lib/ui/input/location_input.js +8 -10
- package/lib/ui/input/mfa_code_input.js +9 -11
- package/lib/ui/input/password/password_strength.js +14 -20
- package/lib/ui/input/password_input.js +10 -12
- package/lib/ui/input/phone_number_input.js +9 -11
- package/lib/ui/input/select_input.js +8 -10
- package/lib/ui/input/text_input.js +9 -11
- package/lib/ui/input/username_input.js +9 -11
- package/lib/ui/input/vcode_input.js +9 -11
- package/lib/ui/list.js +15 -21
- package/lib/utils/atom.js +2 -3
- package/lib/utils/cache.js +2 -3
- package/lib/utils/jsonp_utils.js +2 -3
- package/package.json +2 -2
|
@@ -14,20 +14,20 @@ var l = _interopRequireWildcard(require("../index"));
|
|
|
14
14
|
var _signed_in_confirmation = require("../signed_in_confirmation");
|
|
15
15
|
var _index3 = require("../../connection/social/index");
|
|
16
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
20
20
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
21
21
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
22
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
22
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
23
23
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
24
|
-
function
|
|
25
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
26
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
24
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
27
25
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
28
26
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
29
|
-
function _isNativeReflectConstruct() {
|
|
27
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
30
28
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
29
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
30
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
31
|
// TODO: handle this from CSS
|
|
32
32
|
function icon(strategy) {
|
|
33
33
|
if (_index3.STRATEGIES[strategy]) return strategy;
|
|
@@ -70,13 +70,12 @@ var Component = function Component(_ref) {
|
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
72
|
var LastLoginScreen = exports.default = /*#__PURE__*/function (_Screen) {
|
|
73
|
-
_inherits(LastLoginScreen, _Screen);
|
|
74
|
-
var _super = _createSuper(LastLoginScreen);
|
|
75
73
|
function LastLoginScreen() {
|
|
76
74
|
_classCallCheck(this, LastLoginScreen);
|
|
77
|
-
return
|
|
75
|
+
return _callSuper(this, LastLoginScreen, ['lastLogin']);
|
|
78
76
|
}
|
|
79
|
-
|
|
77
|
+
_inherits(LastLoginScreen, _Screen);
|
|
78
|
+
return _createClass(LastLoginScreen, [{
|
|
80
79
|
key: "renderAuxiliaryPane",
|
|
81
80
|
value: function renderAuxiliaryPane(lock) {
|
|
82
81
|
return (0, _signed_in_confirmation.renderSignedInConfirmation)(lock);
|
|
@@ -87,5 +86,4 @@ var LastLoginScreen = exports.default = /*#__PURE__*/function (_Screen) {
|
|
|
87
86
|
return Component;
|
|
88
87
|
}
|
|
89
88
|
}]);
|
|
90
|
-
return LastLoginScreen;
|
|
91
89
|
}(_screen.default);
|
package/lib/core/tenant/index.js
CHANGED
|
@@ -13,7 +13,7 @@ var _data_utils = require("../../utils/data_utils");
|
|
|
13
13
|
var l = _interopRequireWildcard(require("../index"));
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
17
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
18
18
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
19
19
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -24,7 +24,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
24
24
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
25
25
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26
26
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
27
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
27
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
28
28
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
29
29
|
var _dataFns = (0, _data_utils.dataFns)(['client']),
|
|
30
30
|
initNS = _dataFns.initNS,
|
|
@@ -10,7 +10,7 @@ var _cdn_utils = require("../../utils/cdn_utils");
|
|
|
10
10
|
var l = _interopRequireWildcard(require("../index"));
|
|
11
11
|
var _index2 = require("./index");
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
function fetchTenantSettings(tenantBaseUrl, cb) {
|
|
15
15
|
(0, _cdn_utils.load)({
|
|
16
16
|
method: 'setTenant',
|
|
@@ -13,9 +13,9 @@ var _excluded = ["popup"];
|
|
|
13
13
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
14
14
|
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
|
15
15
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
16
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
16
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
17
17
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
19
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
20
|
function normalizeError(error, domain) {
|
|
21
21
|
if (!error) {
|
|
@@ -169,5 +169,5 @@ function trimAuthParams() {
|
|
|
169
169
|
return p;
|
|
170
170
|
}
|
|
171
171
|
function getVersion() {
|
|
172
|
-
return "12.
|
|
172
|
+
return "12.5.0";
|
|
173
173
|
}
|
|
@@ -16,7 +16,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
16
16
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
17
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
18
18
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
20
20
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
21
21
|
var Auth0APIClient = /*#__PURE__*/function () {
|
|
22
22
|
function Auth0APIClient(lockID, clientID, domain, opts) {
|
|
@@ -65,7 +65,7 @@ var Auth0APIClient = /*#__PURE__*/function () {
|
|
|
65
65
|
this.authOpt.sso = opts.sso;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
_createClass(Auth0APIClient, [{
|
|
68
|
+
return _createClass(Auth0APIClient, [{
|
|
69
69
|
key: "getTelemetryInfo",
|
|
70
70
|
value: function getTelemetryInfo(telemetryOverride) {
|
|
71
71
|
var telemetry;
|
|
@@ -198,6 +198,12 @@ var Auth0APIClient = /*#__PURE__*/function () {
|
|
|
198
198
|
var _this$client$client$p;
|
|
199
199
|
return (_this$client$client$p = this.client.client.passwordless).getChallenge.apply(_this$client$client$p, arguments);
|
|
200
200
|
}
|
|
201
|
+
}, {
|
|
202
|
+
key: "getPasswordResetChallenge",
|
|
203
|
+
value: function getPasswordResetChallenge() {
|
|
204
|
+
var _this$client$client$d;
|
|
205
|
+
return (_this$client$client$d = this.client.client.dbConnection).getPasswordResetChallenge.apply(_this$client$client$d, arguments);
|
|
206
|
+
}
|
|
201
207
|
}, {
|
|
202
208
|
key: "getUserCountry",
|
|
203
209
|
value: function getUserCountry(cb) {
|
|
@@ -209,6 +215,5 @@ var Auth0APIClient = /*#__PURE__*/function () {
|
|
|
209
215
|
return this.client.checkSession(options, cb);
|
|
210
216
|
}
|
|
211
217
|
}]);
|
|
212
|
-
return Auth0APIClient;
|
|
213
218
|
}();
|
|
214
219
|
var _default = exports.default = Auth0APIClient;
|
package/lib/core/web_api.js
CHANGED
|
@@ -10,14 +10,14 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
10
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
11
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
12
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
15
|
var Auth0WebAPI = /*#__PURE__*/function () {
|
|
16
16
|
function Auth0WebAPI() {
|
|
17
17
|
_classCallCheck(this, Auth0WebAPI);
|
|
18
18
|
this.clients = {};
|
|
19
19
|
}
|
|
20
|
-
_createClass(Auth0WebAPI, [{
|
|
20
|
+
return _createClass(Auth0WebAPI, [{
|
|
21
21
|
key: "setupClient",
|
|
22
22
|
value: function setupClient(lockID, clientID, domain, opts) {
|
|
23
23
|
var hostedLoginPage = window.location.host === domain;
|
|
@@ -89,6 +89,11 @@ var Auth0WebAPI = /*#__PURE__*/function () {
|
|
|
89
89
|
value: function getPasswordlessChallenge(lockID, callback) {
|
|
90
90
|
return this.clients[lockID].getPasswordlessChallenge(callback);
|
|
91
91
|
}
|
|
92
|
+
}, {
|
|
93
|
+
key: "getPasswordResetChallenge",
|
|
94
|
+
value: function getPasswordResetChallenge(lockID, callback) {
|
|
95
|
+
return this.clients[lockID].getPasswordResetChallenge(callback);
|
|
96
|
+
}
|
|
92
97
|
}, {
|
|
93
98
|
key: "getSSOData",
|
|
94
99
|
value: function getSSOData(lockID) {
|
|
@@ -111,6 +116,5 @@ var Auth0WebAPI = /*#__PURE__*/function () {
|
|
|
111
116
|
return this.clients[lockID].checkSession(options, cb);
|
|
112
117
|
}
|
|
113
118
|
}]);
|
|
114
|
-
return Auth0WebAPI;
|
|
115
119
|
}();
|
|
116
120
|
var _default = exports.default = new Auth0WebAPI();
|