From bd27b04d8a8a70625e56ca457b6e8df9d69d2e29 Mon Sep 17 00:00:00 2001 From: "ankitatripathi.mp@gmail.com" Date: Tue, 21 Jul 2026 22:58:57 +0530 Subject: [PATCH] fix: emit authorization_error for too_many_attempts, guard Cordova plugin, fix select input name prop --- src/core/actions.js | 3 ++- src/core/web_api/p2_api.js | 2 +- src/ui/input/select_input.jsx | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/actions.js b/src/core/actions.js index abdcabb2c..c5cb85e5b 100644 --- a/src/core/actions.js +++ b/src/core/actions.js @@ -242,7 +242,8 @@ function logInError(id, fields, error, localHandler = (_id, _error, _fields, nex 'rule_error', 'lock.unauthorized', 'invalid_user_password', - 'login_required' + 'login_required', + 'too_many_attempts' ]; if (errorCodesThatEmitAuthorizationErrorEvent.indexOf(errorCode) > -1) { diff --git a/src/core/web_api/p2_api.js b/src/core/web_api/p2_api.js index 7efd5a926..31782cf43 100644 --- a/src/core/web_api/p2_api.js +++ b/src/core/web_api/p2_api.js @@ -40,7 +40,7 @@ class Auth0APIClient { responseMode: opts.responseMode, responseType: opts.responseType, leeway: opts.leeway || 60, - plugins: opts.plugins || [new CordovaAuth0Plugin()], + plugins: opts.plugins || (typeof CordovaAuth0Plugin === 'function' ? [new CordovaAuth0Plugin()] : []), overrides: webAuthOverrides(opts.overrides), _sendTelemetry: opts._sendTelemetry === false ? false : true, _telemetryInfo: telemetry, diff --git a/src/ui/input/select_input.jsx b/src/ui/input/select_input.jsx index 5fab5dcb8..4f28d2ee6 100644 --- a/src/ui/input/select_input.jsx +++ b/src/ui/input/select_input.jsx @@ -56,7 +56,7 @@ export default class SelectInput extends React.Component { if (!label) className += ' auth0-lock-input-with-placeholder'; return ( - +