Socket
Socket
Sign inDemoInstall

auth0-lock

Package Overview
Dependencies
Maintainers
8
Versions
338
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auth0-lock - npm Package Compare versions

Comparing version 11.10.0 to 11.11.0

lib/__tests__/engine/passwordless.js

14

CHANGELOG.md
# Change Log
## [v11.11.0](https://github.com/auth0/lock/tree/v11.11.0) (2018-10-23)
[Full Changelog](https://github.com/auth0/lock/compare/v11.10.0...v11.11.0)
**Added**
- Add prefill support to Auth0LockPasswordless [\#1505](https://github.com/auth0/lock/pull/1505) ([luisrudge](https://github.com/luisrudge))
- Add `ariaLabel` option for custom fields [\#1492](https://github.com/auth0/lock/pull/1492) ([Splact](https://github.com/Splact))
**Fixed**
- Fix google button styles according to google's guidelines [\#1512](https://github.com/auth0/lock/pull/1512) ([luisrudge](https://github.com/luisrudge))
- [Sustainment] Fixed Reset Password Avatar/Enterprise Issue [\#1504](https://github.com/auth0/lock/pull/1504) ([cocojoe](https://github.com/cocojoe))
- Remove aria-describedby on missing ref [\#1497](https://github.com/auth0/lock/pull/1497) ([Splact](https://github.com/Splact))
## [v11.10.0](https://github.com/auth0/lock/tree/v11.10.0) (2018-09-27)

@@ -4,0 +18,0 @@ [Full Changelog](https://github.com/auth0/lock/compare/v11.9.1...v11.10.0)

2

lib/__tests__/connection/database/reset_password.js

@@ -61,2 +61,3 @@ 'use strict';

it('isSubmitDisabled returns true when `isEnterpriseDomain` is true', function () {
jest.useFakeTimers();
require('connection/enterprise').isEnterpriseDomain = function () {

@@ -67,2 +68,3 @@ return true;

expect(screen.isSubmitDisabled()).toBe(true);
jest.runTimersToTime(50);
expect(require('store/index').swap.mock.calls[0]).toMatchSnapshot();

@@ -69,0 +71,0 @@ });

@@ -28,2 +28,3 @@ 'use strict';

placeholder: 'placeholder',
ariaLabel: 'Custom Input',
name: 'custom_input',

@@ -30,0 +31,0 @@ model: {},

4

lib/connection/database/reset_password.js

@@ -90,3 +90,5 @@ 'use strict';

if (tryingToResetPasswordWithEnterpriseEmail) {
(0, _index4.swap)(_index4.updateEntity, 'lock', l.id(m), l.setGlobalError, i18n.str(m, ['error', 'forgotPassword', 'enterprise_email']));
setTimeout(function () {
(0, _index4.swap)(_index4.updateEntity, 'lock', l.id(m), l.setGlobalError, i18n.str(m, ['error', 'forgotPassword', 'enterprise_email']));
}, 50);
} else {

@@ -93,0 +95,0 @@ (0, _index4.swap)(_index4.updateEntity, 'lock', l.id(m), l.clearGlobalError);

@@ -46,3 +46,3 @@ 'use strict';

name: 'lock.js',
version: '11.10.0',
version: '11.11.0',
lib_version: _auth0Js2.default.version

@@ -49,0 +49,0 @@ };

@@ -76,2 +76,3 @@ 'use strict';

name: x.get('name'),
ariaLabel: x.get('ariaLabel'),
options: x.get('options'),

@@ -78,0 +79,0 @@ placeholder: x.get('placeholder'),

@@ -47,2 +47,6 @@ 'use strict';

var _email = require('../field/email');
var _phone_number = require('../field/phone_number');
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

@@ -54,2 +58,16 @@

var setPrefill = function setPrefill(m) {
var _l$prefill$toJS = l.prefill(m).toJS(),
email = _l$prefill$toJS.email,
phoneNumber = _l$prefill$toJS.phoneNumber;
if (typeof email === 'string') {
m = (0, _email.setEmail)(m, email);
}
if (typeof phoneNumber === 'string') {
m = (0, _phone_number.setPhoneNumber)(m, phoneNumber);
}
return m;
};
var Passwordless = function () {

@@ -76,2 +94,3 @@ function Passwordless() {

}
m = setPrefill(m);

@@ -113,11 +132,2 @@ return m;

}
setTimeout(function () {
var stopError = new Error('Internal error');
stopError.code = 'internal_error';
stopError.description = "Couldn't find a screen to render";
(0, _index.swap)(_index.updateEntity, 'lock', l.id(m), l.stop, stopError);
}, 0);
return new _error_screen2.default();
};

@@ -124,0 +134,0 @@

@@ -39,2 +39,3 @@ 'use strict';

name = _ref.name,
ariaLabel = _ref.ariaLabel,
placeholder = _ref.placeholder,

@@ -49,2 +50,3 @@ type = _ref.type,

name: name,
ariaLabel: ariaLabel,
placeholder: placeholder

@@ -51,0 +53,0 @@ };

@@ -119,3 +119,3 @@ 'use strict';

method: 'registerLanguageDictionary',
url: l.languageBaseUrl(m) + '/js/lock/' + '11.10.0' + '/' + language + '.js',
url: l.languageBaseUrl(m) + '/js/lock/' + '11.11.0' + '/' + language + '.js',
check: function check(str) {

@@ -122,0 +122,0 @@ return str && str === language;

@@ -7,5 +7,5 @@ 'use strict';

forgotPassword: {
too_many_requests: 'Sie haben das Limit für die Rücksetzung des Passworts erreicht. Bitte warten Sie, bevor Sie es erneut versuchen.',
'lock.fallback': 'Beim Zurücksetzen des Passworts ist ein Fehler aufgetreten.',
enterprise_email: 'Die Domain Ihrer E-Mail ist Teil eines Enterprise Identity Providers. Um Ihr Passwort zurückzusetzen, wenden Sie sich bitte an Ihren Sicherheitsadministrator.'
too_many_requests: 'Sie haben das Limit für Rücksetzungsversuche des Passworts erreicht. Bitte warten Sie, bevor Sie es erneut versuchen.',
'lock.fallback': 'Es tut uns leid, beim Zurücksetzen des Passworts ist ein Fehler aufgetreten.',
enterprise_email: 'Die Domain Ihrer E-Mail-Adresse ist Teil eines Enterprise Identity Providers. Um Ihr Passwort zurückzusetzen, wenden Sie sich bitte an Ihren Sicherheitsadministrator.'
},

@@ -15,5 +15,5 @@ login: {

invalid_user_password: 'Falsche Anmeldeinformationen.',
'lock.fallback': 'Beim Verarbeiten der Anmeldung ist ein Fehler aufgetreten.',
'lock.fallback': 'Es tut uns leid, beim Verarbeiten der Anmeldung ist ein Fehler aufgetreten.',
'lock.invalid_code': 'Falscher Code.',
'lock.invalid_email_password': 'Falsche E-Mail oder Passwort.',
'lock.invalid_email_password': 'Falsche E-Mail-Adresse oder Passwort.',
'lock.invalid_username_password': 'Falscher Benutzername oder Passwort.',

@@ -29,7 +29,7 @@ 'lock.network': 'Der Server antwortet nicht.<br/>Bitte erneut versuchen.',

session_missing: 'Ihre Authentifizierungsanfrage konnte nicht abgeschlossen werden. Bitte versuchen Sie es erneut, nachdem Sie alle geöffneten Dialoge geschlossen haben.',
'hrd.not_matching_email': 'Bitte verwenden Sie Ihre geschäftliche E-Mail, um sich anzumelden.'
'hrd.not_matching_email': 'Bitte verwenden Sie Ihre geschäftliche E-Mail-Adresse, um sich anzumelden.'
},
passwordless: {
'bad.email': 'Die E-Mail ist ungültig',
'bad.phone_number': 'Die Telefonnummer ist ungültig',
'bad.email': 'Diese E-Mail-Adresse ist ungültig',
'bad.phone_number': 'Diese Telefonnummer ist ungültig',
'lock.fallback': 'Es tut uns leid, etwas ist schiefgelaufen.'

@@ -40,3 +40,3 @@ },

'lock.fallback': 'Es tut uns leid, beim Verarbeiten der Registrierung ist ein Fehler aufgetreten.',
password_dictionary_error: 'Das Passwort ist zu häufig.',
password_dictionary_error: 'Das Passwort ist zu verbreitet.',
password_no_user_info_error: 'Das Passwort basiert auf Benutzerinformationen.',

@@ -61,9 +61,10 @@ password_strength_error: 'Das Passwort ist zu schwach.',

emailInputPlaceholder: 'ihremail@example.com',
enterpriseLoginIntructions: 'Melden Sie sich mit Ihren Unternehmensanmeldeinformationen an.',
enterpriseActiveLoginInstructions: 'Bitte geben Sie Ihre Unternehmensanmeldeinformationen bei %s an.',
enterpriseLoginIntructions: 'Melden Sie sich mit Ihren geschäftlichen Informationen an.',
enterpriseActiveLoginInstructions: 'Bitte geben Sie Ihre geschäftlichen Informationen bei %s an.',
failedLabel: 'Gescheitert!',
forgotPasswordTitle: 'Setzen Sie Ihr Passwort zurück',
forgotPasswordAction: 'Passwort vergessen?',
forgotPasswordInstructions: 'Geben Sie bitte Ihre Email-Adresse ein. Wir werden Ihnen eine E-Mail senden um Ihr Passwort zurücksetzen zu können.',
forgotPasswordInstructions: 'Geben Sie bitte Ihre E-Mail-Adresse ein. Wir werden Ihnen eine E-Mail senden um Ihr Passwort zurücksetzen zu können.',
forgotPasswordSubmitLabel: 'E-Mail senden',
invalidErrorHint: 'Ungültig',
invalidErrorHint: 'Ungültig!',
lastLoginInstructions: 'Letztes Mal waren Sie angemeldet mit',

@@ -74,3 +75,3 @@ loginAtLabel: 'Anmelden bei %s',

loginWithLabel: 'Anmelden mit %s',
notYourAccountAction: 'Falscher Account?',
notYourAccountAction: 'Falsches Konto?',
passwordInputPlaceholder: 'Ihr Passwort',

@@ -99,3 +100,5 @@ passwordStrength: {

retryLabel: 'Wiederholen',
sentLabel: 'Senden',
sentLabel: 'Gesendet!',
showPassword: 'Passwort anzeigen',
signUpTitle: 'Anmelden',
signUpLabel: 'Registrieren',

@@ -112,3 +115,3 @@ signUpSubmitLabel: 'Registrieren',

usernameInputPlaceholder: 'Ihr Benutzername',
usernameOrEmailInputPlaceholder: 'Benutzername/E-Mail',
usernameOrEmailInputPlaceholder: 'Benutzername/E-Mail-Adresse',
title: 'Auth0',

@@ -118,10 +121,7 @@ welcome: 'Willkommen %s!',

windowsAuthLabel: 'Windows Authentifizierung',
forgotPasswordTitle: 'Setzen Sie Ihr Passwort zurück',
signUpTitle: 'Anmelden',
mfaInputPlaceholder: 'Code',
mfaLoginTitle: '2-Step Verification',
mfaLoginTitle: 'Multifaktor-Authentifizierung',
mfaLoginInstructions: 'Bitte geben Sie den Bestätigungscode ein, der von Ihrer mobilen Anwendung generiert wurde.',
mfaSubmitLabel: 'Anmelden',
mfaCodeErrorHint: 'Verwenden %d Zahlen',
showPassword: 'Passwort anzeigen'
mfaCodeErrorHint: 'Verwenden %d Zahlen'
};

@@ -27,3 +27,3 @@ 'use strict';

session_missing: "Couldn't complete your authentication request. Please try again after closing all open dialogs",
'hrd.not_matching_email': 'Please, use your corporate email to login.'
'hrd.not_matching_email': 'Please use your corporate email to login.'
},

@@ -30,0 +30,0 @@ passwordless: {

@@ -7,3 +7,3 @@ 'use strict';

forgotPassword: {
too_many_requests: 'Hai raggiunto il limite di tentativi di modifica della password . Attendi prima di riprovare.',
too_many_requests: 'Hai raggiunto il limite di tentativi di modifica della password. Attendi prima di riprovare.',
'lock.fallback': 'Ci dispiace, qualcosa è andato storto durante la richiesta di modifica della password.',

@@ -13,7 +13,7 @@ enterprise_email: "Il dominio della tua email fa parte di un provider di identità aziendale. Per reimpostare la password, consultare l'amministratore della sicurezza."

login: {
blocked_user: 'L’utente è bloccato.',
blocked_user: 'L\'utente è bloccato.',
invalid_user_password: 'Credenziali non corrette.',
'lock.fallback': 'Ci dispiace, qualcosa è andato storto quando si tenta di accedere.',
'lock.invalid_code': 'Codice errato.',
'lock.invalid_email_password': 'email o password sbagliata.',
'lock.invalid_email_password': 'Email o password sbagliata.',
'lock.invalid_username_password': 'Nome utente o password sbagliata.',

@@ -23,4 +23,4 @@ 'lock.network': 'Non siamo riusciti a raggiungere il server. Si prega di controllare la connessione e riprovare.',

'lock.unauthorized': 'Autorizzazioni non concesse. Riprova per favore.',
password_change_required: 'È necessario aggiornare la password perché questa è il primo login, o perché la password è scaduta.',
password_leaked: 'Questo accesso è stato bloccato perché la password è trapelato in un altro sito . Ti abbiamo inviato una email con le istruzioni su come sbloccarla.',
password_change_required: 'È necessario aggiornare la password perché questo è il tuo primo login, o perché la password è scaduta.',
password_leaked: 'Questo accesso è stato bloccato perché la password è trapelata in un altro sito. Ti abbiamo inviato un\'email con le istruzioni su come sbloccarla.',
too_many_attempts: 'Il suo account è stato bloccato dopo vari tentativi di accesso consecutivi.',

@@ -33,3 +33,3 @@ 'lock.mfa_registration_required': 'Autenticazione a più fattori richiesta, ma il dispositivo non è abilitato. Si prega di iscriversi prima di passare.',

passwordless: {
'bad.email': 'L’email non è valido ',
'bad.email': 'L\'email non è valida',
'bad.phone_number': 'Il numero di telefono non è valido',

@@ -44,3 +44,3 @@ 'lock.fallback': 'Ci dispiace, qualcosa è andato storto'

password_strength_error: 'La password è troppo debole.',
user_exists: 'L’utente esiste già.',
user_exists: 'L\'utente esiste già.',
username_exists: 'Il nome utente esiste già.'

@@ -50,9 +50,9 @@ }

success: {
logIn: 'Grazie per il login.',
forgotPassword: 'Abbiamo appena inviato un email per reimpostare la password.',
magicLink: 'La abbiamo inviato un link per il login <br />a %s.',
logIn: 'Login effettuato con successo.',
forgotPassword: 'Abbiamo appena inviato un\'email per reimpostare la password.',
magicLink: 'Abbiamo inviato un link per il login<br />a %s.',
signUp: 'Grazie per esserti iscritto.'
},
blankErrorHint: 'Non può essere vuoto',
codeInputPlaceholder: 'il Suo codice',
codeInputPlaceholder: 'il tuo codice',
databaseEnterpriseLoginInstructions: '',

@@ -67,6 +67,6 @@ databaseEnterpriseAlternativeLoginInstructions: 'o',

forgotPasswordAction: 'Non ricordi la password?',
forgotPasswordInstructions: "Inserisci l'email. Ti invieremo una email per reimpostare la password.",
forgotPasswordInstructions: "Inserisci il tuo indirizzo email. Ti invieremo un'email per reimpostare la password.",
forgotPasswordSubmitLabel: "Inviare l'email",
invalidErrorHint: 'Non valido',
lastLoginInstructions: 'L’ultima volta hai effettuato l’accesso con',
lastLoginInstructions: 'L\'ultima volta hai effettuato l’accesso con',
loginAtLabel: 'Accedere a %s',

@@ -77,7 +77,7 @@ loginLabel: 'Accesso',

notYourAccountAction: 'Non è il tuo account?',
passwordInputPlaceholder: 'La sua password',
passwordInputPlaceholder: 'la tua password',
passwordStrength: {
containsAtLeast: 'Essa deve contenere almeno %d dei seguenti %d tipi di caratteri:',
identicalChars: 'Non più di %d caratteri identici in una fila (e.g., "%s" non autorizzato)',
nonEmpty: "E'richiesta una password non vuota",
nonEmpty: "E' richiesta una password non vuota",
numbers: 'Numeri (i.e. 0-9)',

@@ -90,10 +90,10 @@ lengthAtLeast: 'Almeno %d caratteri di lunghezza',

},
passwordlessEmailAlternativeInstructions: "Altrimenti, si prega d’inserire l'email per accedere <br/> o creare un account",
passwordlessEmailCodeInstructions: 'Una email con il codice è stato inviata %s.',
passwordlessEmailInstructions: 'Si prega d’inserire la email <br/>o creare un account',
passwordlessSMSAlternativeInstructions: 'Altrimenti, si prega d’inserire il numero di telefono per accedere <br/>o creare un account',
passwordlessSMSCodeInstructions: 'Un SMS con il codice è stato inviato<br/> a %s.',
passwordlessSMSInstructions: 'Si prega d’inserire il numero di telefono <br/>o creare un account',
phoneNumberInputPlaceholder: 'il Suo numero di telefono',
resendCodeAction: 'Non hai ottentuo il codice?',
passwordlessEmailAlternativeInstructions: "Altrimenti, si prega di inserire l'email per accedere<br/>o creare un account",
passwordlessEmailCodeInstructions: 'Un\'email con il codice è stata inviata a %s.',
passwordlessEmailInstructions: 'Si prega di inserire l\'email<br/>o creare un account',
passwordlessSMSAlternativeInstructions: 'Altrimenti, si prega d’inserire il numero di telefono per accedere<br/>o creare un account',
passwordlessSMSCodeInstructions: 'Un SMS con il codice è stato inviato<br/>a %s.',
passwordlessSMSInstructions: 'Si prega di inserire il numero di telefono<br/>o creare un account',
phoneNumberInputPlaceholder: 'il tuo numero di telefono',
resendCodeAction: 'Non hai ottenuto il codice?',
resendLabel: 'Inviare di nuovo',

@@ -103,12 +103,12 @@ resendingLabel: 'Reinvio...',

sentLabel: 'Inviato!',
signUpLabel: 'Registrazione',
signUpSubmitLabel: 'Registrazione',
signUpLabel: 'Registrati',
signUpSubmitLabel: 'Registrati',
signUpTerms: '',
signUpWithLabel: 'Registra con %s',
signUpWithLabel: 'Registrati con %s',
socialLoginInstructions: '',
socialSignUpInstructions: '',
ssoEnabled: 'Single Sign-On abilitati',
submitLabel: 'Invio',
ssoEnabled: 'Single Sign-On abilitato',
submitLabel: 'Invia',
unrecoverableError: 'Qualcosa è andato storto.<br />Si prega di contattare il supporto tecnico.',
usernameFormatErrorHint: 'Usa %d-%d lettere, numeri ei seguenti caratteri: "_", ".", "+", "-"',
usernameFormatErrorHint: 'Usa %d-%d lettere, numeri e i seguenti caratteri: "_", ".", "+", "-"',
usernameInputPlaceholder: 'Nome utente',

@@ -121,9 +121,9 @@ usernameOrEmailInputPlaceholder: 'Nome utente o email',

forgotPasswordTitle: 'Reimposta la tua password',
signUpTitle: 'Registrazione',
signUpTitle: 'Registrati',
mfaInputPlaceholder: 'Codice',
mfaLoginTitle: '2-fase di verifica',
mfaLoginInstructions: 'Si prega di inserire il codice di verifica generato dalla tua applicazione mobile.',
mfaSubmitLabel: 'Accesso',
mfaSubmitLabel: 'Accedere',
mfaCodeErrorHint: 'Usare %d numeri',
showPassword: 'Mostra password'
};

@@ -102,3 +102,3 @@ 'use strict';

signUpLabel: 'Registrer deg',
signUpSubmitLabel: '',
signUpSubmitLabel: 'Registrer deg',
signUpTerms: '',

@@ -105,0 +105,0 @@ signUpWithLabel: 'Registrer deg med %s',

@@ -102,3 +102,3 @@ 'use strict';

signUpLabel: 'Registrer deg',
signUpSubmitLabel: '',
signUpSubmitLabel: 'Registrer deg',
signUpTerms: '',

@@ -105,0 +105,0 @@ signUpWithLabel: 'Registrer deg med %s',

'use strict';
exports.__esModule = true;
// This file was automatically translated.
// Feel free to submit a PR if you find a more accurate translation.
exports.default = {

@@ -12,3 +12,3 @@ error: {

'lock.fallback': 'Произошла непредвиденная ошибка при запросе на восстановление пароля. Приносим свои извинения.',
enterprise_email: 'Домен вашей электронной почты является частью поставщика удостоверений предприятия. Чтобы сбросить пароль, обратитесь к администратору безопасности.'
enterprise_email: 'Домен вашей электронной почты является частью корпоративной информационной системы. Чтобы сбросить пароль, обратитесь к администратору службы безопасности.'
},

@@ -25,6 +25,6 @@ login: {

'lock.unauthorized': 'Недостаточно полномочий, попробуйте еще раз.',
password_change_required: 'Необходимо обновить пароль, посколько Вы совершаете вход в первый раз, или срок действия пароля истек.',
password_leaked: 'Эта учетная запись была заблокирована, поскольку произошла утечка Вашего пароля на другом веб-сайте. На Ваш электронный адрес отправлена инструкция по восстановлению учетной записи.',
password_change_required: 'Необходимо обновить пароль, так как Вы совершаете вход в первый раз, или срок действия пароля истек.',
password_leaked: 'Эта учетная запись была заблокирована, так как произошла утечка Вашего пароля на другом веб-сайте. На Ваш электронный адрес отправлена инструкция по восстановлению учетной записи.',
too_many_attempts: 'Ваш аккаунт был заблокирован после нескольких последовательных попыток входа в систему.',
'lock.mfa_registration_required': 'Многофакторная аутентификация требуется, но устройство не зарегистрирован. Пожалуйста, зарегистрировать его, прежде чем двигаться дальше.',
'lock.mfa_registration_required': 'Требуется многофакторная аутентификация, но устройство не зарегистрировано. Пожалуйста, зарегистрируйте его, прежде чем двигаться дальше.',
'lock.mfa_invalid_code': 'Неверный код. Пожалуйста, попробуйте еще раз.',

@@ -42,4 +42,4 @@ session_missing: 'Не удалось выполнить запрос аутентификации. Пожалуйста, попробуйте еще раз после закрытия всех открытых диалоговых окон',

'lock.fallback': 'Произошла непредвиденная ошибка при попытке создания учетной записи. Приносим свои извинения.',
password_dictionary_error: 'Пароль слишком общий',
password_no_user_info_error: 'Пароль основывается на информации о пользователе.',
password_dictionary_error: 'Слишком распространенный пароль',
password_no_user_info_error: 'Пароль содержит информацию о пользователе.',
password_strength_error: 'Пароль слишком слабый.',

@@ -73,3 +73,3 @@ user_exists: 'Пользователь уже существует.',

loginLabel: 'Вход',
loginSubmitLabel: 'авторизоваться',
loginSubmitLabel: 'Авторизоваться',
loginWithLabel: 'Вход через %s',

@@ -76,0 +76,0 @@ notYourAccountAction: 'Не Ваша учетная запись?',

@@ -40,3 +40,3 @@ 'use strict';

exports.default = Auth0Lock;
Auth0Lock.version = '11.10.0';
Auth0Lock.version = '11.11.0';

@@ -43,0 +43,0 @@ // TODO: should we have different telemetry for classic/passwordless?

@@ -39,2 +39,2 @@ 'use strict';

Auth0LockPasswordless.version = '11.10.0';
Auth0LockPasswordless.version = '11.11.0';

@@ -33,2 +33,3 @@ 'use strict';

name = _props.name,
ariaLabel = _props.ariaLabel,
placeholder = _props.placeholder,

@@ -47,3 +48,4 @@ checked = _props.checked;

onChange: this.handleOnChange.bind(this),
name: name
name: name,
'aria-label': ariaLabel || name
}),

@@ -50,0 +52,0 @@ _react2.default.createElement('span', { dangerouslySetInnerHTML: { __html: placeholder } })

@@ -83,3 +83,3 @@ 'use strict';

'aria-invalid': !isValid,
'aria-describedby': 'auth0-lock-error-msg-email'
'aria-describedby': !isValid && invalidHint ? 'auth0-lock-error-msg-email' : undefined
}, props))

@@ -86,0 +86,0 @@ );

@@ -67,4 +67,4 @@ 'use strict';

_react2.default.createElement(
'span',
null,
'div',
{ className: 'auth0-lock-error-invalid-hint' },
invalidHint

@@ -98,3 +98,3 @@ )

focused: _propTypes2.default.bool,
invalidHint: _propTypes2.default.string,
invalidHint: _propTypes2.default.node,
isValid: _propTypes2.default.bool.isRequired,

@@ -101,0 +101,0 @@ name: _propTypes2.default.string.isRequired,

@@ -84,3 +84,3 @@ 'use strict';

'aria-invalid': !isValid,
'aria-describedby': 'auth0-lock-error-msg-mfa_code'
'aria-describedby': !isValid && invalidHint ? 'auth0-lock-error-msg-mfa_code' : undefined
}, props))

@@ -87,0 +87,0 @@ );

@@ -107,3 +107,3 @@ 'use strict';

'aria-invalid': !isValid,
'aria-describedby': 'auth0-lock-error-msg-password'
'aria-describedby': !isValid && !policy && invalidHint ? 'auth0-lock-error-msg-password' : undefined
}, props))

@@ -110,0 +110,0 @@ );

@@ -59,4 +59,3 @@ 'use strict';

'aria-label': 'Telephone number',
'aria-invalid': !isValid,
'aria-describedby': 'auth0-lock-error-msg-phoneNumber'
'aria-invalid': !isValid
}, props))

@@ -63,0 +62,0 @@ );

@@ -40,2 +40,3 @@ 'use strict';

label = _props.label,
ariaLabel = _props.ariaLabel,
name = _props.name,

@@ -54,3 +55,3 @@ onClick = _props.onClick,

if (!icon && typeof iconUrl === 'string' && iconUrl) {
icon = _react2.default.createElement('img', { className: 'auth0-lock-custom-icon', src: iconUrl });
icon = _react2.default.createElement('img', { className: 'auth0-lock-custom-icon', alt: ariaLabel || name, src: iconUrl });
}

@@ -73,5 +74,4 @@

onClick: onClick,
'aria-label': name,
'aria-invalid': !isValid,
'aria-describedby': 'auth0-lock-error-msg-' + name
'aria-label': ariaLabel || name,
'aria-invalid': !isValid
}),

@@ -78,0 +78,0 @@ _react2.default.createElement('span', { dangerouslySetInnerHTML: { __html: arrowSvg } })

@@ -47,5 +47,6 @@ 'use strict';

name = _props.name,
ariaLabel = _props.ariaLabel,
onChange = _props.onChange,
value = _props.value,
props = _objectWithoutProperties(_props, ['iconUrl', 'invalidHint', 'isValid', 'name', 'onChange', 'value']);
props = _objectWithoutProperties(_props, ['iconUrl', 'invalidHint', 'isValid', 'name', 'ariaLabel', 'onChange', 'value']);

@@ -57,3 +58,3 @@ var icon = this.props.icon;

if (!icon && typeof iconUrl === 'string' && iconUrl) {
icon = _react2.default.createElement('img', { className: 'auth0-lock-custom-icon', src: iconUrl });
icon = _react2.default.createElement('img', { className: 'auth0-lock-custom-icon', alt: ariaLabel || name, src: iconUrl });
}

@@ -81,5 +82,5 @@

value: value,
'aria-label': name,
'aria-label': ariaLabel || name,
'aria-invalid': !isValid,
'aria-describedby': 'auth0-lock-error-msg-' + name
'aria-describedby': !isValid && invalidHint ? 'auth0-lock-error-msg-' + name : undefined
}, props))

@@ -86,0 +87,0 @@ );

@@ -86,3 +86,3 @@ 'use strict';

'aria-invalid': !isValid,
'aria-describedby': 'auth0-lock-error-msg-username'
'aria-describedby': !isValid && invalidHint ? 'auth0-lock-error-msg-username' : undefined
}, props))

@@ -89,0 +89,0 @@ );

@@ -75,4 +75,3 @@ 'use strict';

'aria-label': 'vcode',
'aria-invalid': !isValid,
'aria-describedby': 'auth0-lock-error-msg-vcode'
'aria-invalid': !isValid
}, props))

@@ -79,0 +78,0 @@ );

{
"name": "auth0-lock",
"version": "11.10.0",
"version": "11.11.0",
"description": "Auth0 Lock",

@@ -90,3 +90,3 @@ "author": "Auth0 <support@auth0.com> (http://auth0.com)",

"dependencies": {
"auth0-js": "^9.8.0",
"auth0-js": "^9.8.1",
"auth0-password-policies": "^1.0.1",

@@ -93,0 +93,0 @@ "blueimp-md5": "2.3.1",

@@ -11,2 +11,11 @@ [![NPM version][npm-image]][npm-url]

## Table of Contents
1. [Install](#install)
2. [Cross Origin Authentication](#cross-origin-authentication)
3. [API](#api)
4. [Browser Compatibility](#browser-compatibility)
5. [Issue Reporting](#issue-reporting)
6. [Author](#author)
7. [License](#license)
## Install

@@ -18,3 +27,3 @@

<!-- Latest patch release (recommended for production) -->
<script src="https://cdn.auth0.com/js/lock/11.10.0/lock.min.js"></script>
<script src="https://cdn.auth0.com/js/lock/11.11.0/lock.min.js"></script>
```

@@ -36,3 +45,3 @@

After installing the `auth0-lock` module, you'll need bundle it up along with all of its dependencies. See examples for [browserify](examples/bundling/browserify/) and [webpack](examples/bundling/webpack/).
After installing the `auth0-lock` module, you'll need to bundle it up along with all of its dependencies. See examples for [browserify](examples/bundling/browserify/) and [webpack](examples/bundling/webpack/).

@@ -47,3 +56,3 @@ > It is expected that you use the development mode when working on your app, and the production mode when deploying your app to the users.

```
## Cross Origin Authentication
## Cross-Origin Authentication

@@ -94,3 +103,3 @@ Lock uses **Cross-Origin Authentication**, make sure you understand the considerations you need to take into account by reading the [Cross-Origin Authentication documentation](https://auth0.com/docs/cross-origin-authentication).

Fore more information, read our [passwordless docs](https://auth0.com/docs/connections/passwordless).
For more information, read our [passwordless docs](https://auth0.com/docs/connections/passwordless).

@@ -121,6 +130,6 @@ #### Example

Once the user has logged in and you are in possesion of an access token, you can obtain the profile with `getUserInfo`.
Once the user has logged in and you are in possession of an access token, you can obtain the profile with `getUserInfo`.
- **accessToken {String}**: User access token.
- **callback {Function}**: Will be invoked after the user profile been retrieved.
- **callback {Function}**: Will be invoked after the user profile has been retrieved.

@@ -145,4 +154,4 @@ #### Example

- `authenticated`: emitted after a successful authentication. Has the authentication result as the only argument.
- `authorization_error`: emitted when authorization fails. Has error as the only argument.
- `hash_parsed`: every time a new Auth0Lock object is initialized in redirect mode (the default), it will attempt to parse the hash part of the url looking for the result of a login attempt. This is a _low level_ event for advanced use cases and _authenticated_ and _authorization_error_ should be preferred when possible. After that this event will be emitted with `null` if it couldn't find anything in the hash. It will be emitted with the same argument as the `authenticated` event after a successful login or with the same argument as `authorization_error` if something went wrong. This event won't be emitted in popup mode because there is no need to parse the url's hash part.
- `authorization_error`: emitted when authorization fails. Has the error as the only argument.
- `hash_parsed`: every time a new Auth0Lock object is initialized in redirect mode (the default), it will attempt to parse the hash part of the url looking for the result of a login attempt. This is a _low-level_ event for advanced use cases and _authenticated_ and _authorization_error_ should be preferred when possible. After that, this event will be emitted with `null` if it couldn't find anything in the hash. It will be emitted with the same argument as the `authenticated` event after a successful login or with the same argument as `authorization_error` if something went wrong. This event won't be emitted in popup mode because there is no need to parse the url's hash part.
- `forgot_password ready`: emitted when the "Forgot password" screen is shown.

@@ -153,3 +162,3 @@ - `forgot_password submit`: emitted when the user clicks on the submit button of the "Forgot password" screen.

- `signup error`: emitted when signup fails. Has the error as an argument.
- `federated login`: emitted when the user clicks on a social connection button. Has the connection name and the strategy as arguments.
- `federated login`: emitted when the user clicks on a social connection button. Has the connection name and the strategy as arguments.

@@ -160,3 +169,3 @@ ### show(options)

- **options {Object}**: Allows you to customize some aspect of the dialog's appearance and behavior. The options allowed in here are subset of the options allowed in the constructor and will override them: `allowedConnections`, `auth.params`, `allowLogin`, `allowSignUp`, `allowForgotPassword`, `initialScreen`, `rememberLastLogin`, `flashMessage` and `languageDictionary`. See [below](#customization) for the details. Keep in mind that `auth.params` will be fully replaced and not merged.
- **options {Object}**: Allows you to customize some aspect of the dialog's appearance and behavior. The options allowed in here are a subset of the options allowed in the constructor and will override them: `allowedConnections`, `auth.params`, `allowLogin`, `allowSignUp`, `allowForgotPassword`, `initialScreen`, `rememberLastLogin`, `flashMessage` and `languageDictionary`. See [below](#customization) for the details. Keep in mind that `auth.params` will be fully replaced and not merged.

@@ -195,5 +204,5 @@ #### Example

Logs out the user
Logs out the user.
- **options {Object}**: This is optional and follows the same rules as [this](https://auth0.com/docs/libraries/auth0js#logout)
- **options {Object}**: This is optional and follows the same rules as [this](https://auth0.com/docs/libraries/auth0js#logout).

@@ -235,5 +244,5 @@ #### Example

- **autoclose {Boolean}**: Determines whether or not the Lock will be closed automatically after a successful sign in. If the Lock is not `closable` it won't be closed even if this option is set to `true`. Defaults to `false`.
- **autofocus {Boolean}**: Determines whether or not the first input on the screen, that is the email or phone number input, should have focus when the Lock is displayed. Defaults to `false` when a `container` option is provided or the Lock is being render on a mobile device. Otherwise it defaults to `true`.
- **avatar {Object}**: Determines whether or not an avatar and a user name should be displayed on the Lock's header once an email or username has been entered and how to obtain it. By default avatars are fetched from [Gravatar](https://gravatar.com/). Supplying `null` will disable the functionality. To fetch avatar from other provider see [below](#avatar-provider).
- **container {String}**: The `id` of the html element where the Lock will be rendered. This makes the Lock appear inline instead of in a modal window.
- **autofocus {Boolean}**: Determines whether or not the first input on the screen, that is the email or phone number input, should have focus when the Lock is displayed. Defaults to `false` when a `container` option is provided or the Lock is being rendered on a mobile device. Otherwise, it defaults to `true`.
- **avatar {Object}**: Determines whether or not an avatar and a username should be displayed on the Lock's header once an email or username has been entered and how to obtain it. By default avatars are fetched from [Gravatar](https://gravatar.com/). Supplying `null` will disable the functionality. To fetch avatar from other provider see [below](#avatar-provider).
- **container {String}**: The `id` of the HTML element where the Lock will be rendered. This makes the Lock appear inline instead of in a modal window.
- **language {String}**: Specifies the language of the widget. Defaults to `"en"`. Supported languages are:

@@ -253,10 +262,10 @@ - `de`: German

- **popupOptions {Object}**: Allows you to customize the location of the popup in the screen. Any [position and size feature](https://developer.mozilla.org/en-US/docs/Web/API/Window/open#Position_and_size_features) allowed by `window.open` is accepted. Defaults to `{}`.
- **rememberLastLogin {Boolean}**: Determines whether or not to show a screen that allows you to quickly log in with the account you used the last time when the `initialScreen` option is set to to `"login"` (the default). Defaults to `true`.
- **rememberLastLogin {Boolean}**: Determines whether or not to show a screen that allows you to quickly log in with the account you used the last time when the `initialScreen` option is set to `"login"` (the default). Defaults to `true`.
- **flashMessage {Object}**: Shows an `error` or `success` flash message when Lock is shown.
+ **type {String}**: The message type, it should be `error` or `success`.
+ **text {String}**: The text to show.
- **allowAutocomplete {Boolean}**: Determines whether or not the the email or username inputs will allow autocomplete (`<input autocomplete />`). Defaults to `false`.
- **allowAutocomplete {Boolean}**: Determines whether or not the email or username inputs will allow autocomplete (`<input autocomplete />`). Defaults to `false`.
- **scrollGlobalMessagesIntoView {Boolean}**: Determines whether or not a globalMessage should be scrolled into the user's viewport. Defaults to `true`.
- **allowShowPassword {Boolean}**: Determines whether or not add a checkbox to show the password when typing it. Defaults to `false`.
- **allowPasswordAutocomplete {Boolean}**: Determines whether the password field will allow autocomplete; setting this to `true` is required for password manager support and to avoid many cases of adverse behaviour. Defaults to `false`.
- **allowPasswordAutocomplete {Boolean}**: Determines whether the password field will allow autocomplete; setting this to `true` is required for password manager support and to avoid many cases of adverse behavior. Defaults to `false`.

@@ -276,5 +285,5 @@

connectionName: {
displayName: "...",
primaryColor: "...",
foregroundColor: "...",
displayName: "...",
primaryColor: "...",
foregroundColor: "...",
icon: "https://.../logo.png"

@@ -287,3 +296,3 @@ }

- **labeledSubmitButton {Boolean}**: Indicates whether or not the submit button should have a label. Defaults to `true`. When set to `false` a icon will be shown. The labels can be customized through the `languageDictionary`.
- **labeledSubmitButton {Boolean}**: Indicates whether or not the submit button should have a label. Defaults to `true`. When set to `false` an icon will be shown. The labels can be customized through the `languageDictionary`.
- **logo {String}**: Url for an image that will be placed in the Lock's header. Defaults to Auth0's logo.

@@ -325,3 +334,3 @@ - **primaryColor {String}**: Defines the primary color of the Lock, all colors used in the widget will be calculated from it. This option is useful when providing a custom `logo` to ensure all colors go well together with the logo's color palette. Defaults to `"#ea5323"`.

- **redirectUrl {String}**: The url Auth0 will redirect back after authentication. Defaults to the empty string `""` (no redirect URL).
- **responseMode {String}**: Should be set to `"form_post"` if you want the code or the token to be transmitted via an HTTP POST request to the `redirectUrl` instead of being included in its query or fragment parts. Otherwise, it should be ommited.
- **responseMode {String}**: Should be set to `"form_post"` if you want the code or the token to be transmitted via an HTTP POST request to the `redirectUrl` instead of being included in its query or fragment parts. Otherwise, it should be omitted.
- **responseType {String}**: Should be set to `"token"` for Single Page Applications, and `"code"` otherwise. Also, `"id_token"` is supported for the first case. Defaults to `"code"` when `redirectUrl` is provided, and to `"token"` otherwise.

@@ -336,2 +345,3 @@ - **sso {Boolean}**: Determines whether Single Sign On is enabled or not in **Lock**. The Auth0 SSO session will be created regardless of this option if SSO is enabled for your application or tenant.

- If connections from types other than social are also available, it will default to `"big"` when there are 3 social connections at most, and default to `"small"` otherwise.
- Keep in mind that some branding guidelines don’t allow the use of icon by itself to represent sign in. If you want to be compliant with those guidelines, make sure you pick the right style for your application.

@@ -355,3 +365,3 @@ #### Database options

- **defaultEnterpriseConnection {String}**: Specifies the enterprise connection which allows you to login using an username and a password that will be used when there is more than one available or there is a database connection. If a `defaultDatabaseConnection` is provided the database connection will be used and this option will be ignored.
- **defaultEnterpriseConnection {String}**: Specifies the enterprise connection which allows you to log in using a username and a password that will be used when there is more than one available or there is a database connection. If a `defaultDatabaseConnection` is provided the database connection will be used and this option will be ignored.

@@ -378,6 +388,6 @@ #### Example

- **configurationBaseUrl {String}**: Overrides application settings base url. By default it uses Auth0's CDN url when `domain` has the format `*.auth0.com`. Otherwise, it uses the provided `domain`.
- **languageBaseUrl {String}**: Overrides the language source url for Auth0's provided translations. By default it uses to Auth0's CDN url `https://cdn.auth0.com`.
- **hashCleanup {Boolean}**: When enabled, it will remove the hash part of the callback url after the user authentication. Defaults to `true`.
- **connectionResolver {Function}**: When in use, provides an extensibility point to make it possible to choose which connection to use based on the username information. Has `username`, `context` and `callback` as parameters. The callback expects an object like: `{type: 'database', name: 'connection name'}`. **This only works for database connections.** Keep in mind that this resolver will run in the form's `onSubmit` event, so keep it simple and fast. **This is a beta feature. If you find a bug, please open a github [issue](https://github.com/auth0/lock/issues/new).**
- **configurationBaseUrl {String}**: Overrides application settings base URL. By default it uses Auth0's CDN URL when the `domain` has the format `*.auth0.com`. Otherwise, it uses the provided `domain`.
- **languageBaseUrl {String}**: Overrides the language source URL for Auth0's provided translations. By default it uses to Auth0's CDN URL `https://cdn.auth0.com`.
- **hashCleanup {Boolean}**: When enabled, it will remove the hash part of the callback URL after the user authentication. Defaults to `true`.
- **connectionResolver {Function}**: When in use, provides an extensibility point to make it possible to choose which connection to use based on the username information. Has `username`, `context`, and `callback` as parameters. The callback expects an object like: `{type: 'database', name: 'connection name'}`. **This only works for database connections.** Keep in mind that this resolver will run in the form's `onSubmit` event, so keep it simple and fast. **This is a beta feature. If you find a bug, please open a GitHub [issue](https://github.com/auth0/lock/issues/new).**

@@ -407,3 +417,3 @@ ```js

languageDictionary: {
emailInputPlaceholder: "please enter you email",
emailInputPlaceholder: "Please enter your email",
title: "My Company"

@@ -416,3 +426,3 @@ },

Extra input fields can be added to the sign up screen with the `additionalSignUpFields` option. Every input must have a `name` and a `placeholder`, and an `icon` url can also be provided. Also, the initial value can be provided with the `prefill` option, which can be a **string** with the value or a **function** that obtains it. Other options depend on the type of the field, which is defined via the `type` option and defaults to `"text"`.
Extra input fields can be added to the sign up screen with the `additionalSignUpFields` option. Every input must have a `name` and a `placeholder`, and an `icon` URL can also be provided. Also, the initial value can be provided with the `prefill` option, which can be a **string** with the value or a **function** that obtains it. Other options depend on the type of the field, which is defined via the `type` option and defaults to `"text"`.

@@ -431,2 +441,3 @@ Additional sign up fields are rendered below the default fields in the order they are provided.

// The following properties are optional
ariaLabel: "Address",
icon: "https://example.com/assests/address_icon.png",

@@ -460,2 +471,3 @@ prefill: "street 123",

// The following properties are optional
ariaLabel: "Location",
icon: "https://example.com/assests/location_icon.png",

@@ -480,2 +492,3 @@ prefill: "us"

},
ariaLabel: "Location",
icon: "https://example.com/assests/location_icon.png",

@@ -503,2 +516,4 @@ prefill: function(cb) {

placeholder: "I hereby agree that I want to receive marketing emails from your company",
// The following property is optional
ariaLabel: "Activate Newsletter"
}]

@@ -530,3 +545,3 @@ }

url: function(email, cb) {
// obtain url for email, in case of error you call cb with the error in
// obtain URL for email, in case of error you call cb with the error in
// the first arg instead of null

@@ -533,0 +548,0 @@ cb(null, url);

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc