auth0-lock 12.0.0 → 12.0.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.
- package/CHANGELOG.md +15 -0
- package/EXAMPLES.md +27 -2
- package/Makefile +2 -2
- package/README.md +1 -1
- package/karma.conf.js +1 -1
- package/lib/connection/social/index.js +1 -1
- package/lib/core/web_api/helper.js +1 -1
- package/lib/core.js +1 -1
- package/lib/i18n.js +1 -1
- package/lib/lock.js +1 -1
- package/lib/passwordless.js +1 -1
- package/lib/ui/box.js +1 -1
- package/lib/ui/input/captcha_input.js +29 -37
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [v12.0.2](https://github.com/auth0/lock/tree/v12.0.2) (2023-02-10)
|
|
4
|
+
[Full Changelog](https://github.com/auth0/lock/compare/v12.0.1...v12.0.2)
|
|
5
|
+
|
|
6
|
+
**Changed**
|
|
7
|
+
- Slight tweaks to Captcha input component handler methods + refresh button mask [\#2272](https://github.com/auth0/lock/pull/2272) ([stevehobbsdev](https://github.com/stevehobbsdev))
|
|
8
|
+
|
|
9
|
+
**Fixed**
|
|
10
|
+
- Fix for when component is undefined on unmount [\#2271](https://github.com/auth0/lock/pull/2271) ([codetheweb](https://github.com/codetheweb))
|
|
11
|
+
|
|
12
|
+
## [v12.0.1](https://github.com/auth0/lock/tree/v12.0.1) (2023-02-01)
|
|
13
|
+
[Full Changelog](https://github.com/auth0/lock/compare/v12.0.0...v12.0.1)
|
|
14
|
+
|
|
15
|
+
**Changed**
|
|
16
|
+
- FDR-487 - feat: update microsoft button [\#2259](https://github.com/auth0/lock/pull/2259) ([jamescgarrett](https://github.com/jamescgarrett))
|
|
17
|
+
|
|
3
18
|
## [v12.0.0](https://github.com/auth0/lock/tree/v12.0.0) (2023-01-20)
|
|
4
19
|
|
|
5
20
|
[Full Changelog](https://github.com/auth0/lock/compare/v11.35.0...v12.0.0)
|
package/EXAMPLES.md
CHANGED
|
@@ -396,7 +396,7 @@ new Auth0Lock('client ID', 'domain', {
|
|
|
396
396
|
### Other options
|
|
397
397
|
|
|
398
398
|
- **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`.
|
|
399
|
-
- **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
|
|
399
|
+
- **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` ([see below for details](#using-languagebaseurl-and-custom-language-files))
|
|
400
400
|
- **hashCleanup {Boolean}**: When enabled, it will remove the hash part of the callback URL after the user authentication. Defaults to `true`.
|
|
401
401
|
- **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).**
|
|
402
402
|
- **legacySameSiteCookie**: If `false`, no compatibility cookies will be created for those browsers that do not understand the `SameSite` attribute. Defaults to `true`. **Note**: this setting only has an effect when running on an HTTPS domain; if HTTP is used, no legacy cookies are created regardless of this setting.
|
|
@@ -430,13 +430,38 @@ var options = {
|
|
|
430
430
|
};
|
|
431
431
|
```
|
|
432
432
|
|
|
433
|
+
#### Using `languageBaseUrl` and custom language files
|
|
434
|
+
|
|
435
|
+
By default, language files are loaded from Auth0's CDN. `languageBaseUrl` can be used to specify a different location where language files are hosted, including any new language files you author for your application. Here's an example of a custom language file. Note the call to `Auth0.registerLanguageDictionary` that wraps the language content:
|
|
436
|
+
|
|
437
|
+
```js
|
|
438
|
+
Auth0.registerLanguageDictionary('en', {
|
|
439
|
+
error: {
|
|
440
|
+
forgotPassword: {
|
|
441
|
+
too_many_requests:
|
|
442
|
+
'You have reached the limit on password change attempts. Please wait before trying again.',
|
|
443
|
+
'lock.fallback': "We're sorry, something went wrong when requesting the password change.",
|
|
444
|
+
enterprise_email:
|
|
445
|
+
"Your email's domain is part of an Enterprise identity provider. To reset your password, please see your security administrator."
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
// ..
|
|
450
|
+
}
|
|
451
|
+
});
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
> **Note**
|
|
455
|
+
> Not all the language keys are provided here for this example. Typically all the keys must be specified ([see an example language file](https://github.com/auth0/lock/blob/master/src/i18n/en.js)). For keys that are not specified, Lock will fall back to the default English language file.
|
|
456
|
+
|
|
433
457
|
### Additional sign up fields
|
|
434
458
|
|
|
435
459
|
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"`.
|
|
436
460
|
|
|
437
461
|
Additional sign up fields are rendered below the default fields in the order they are provided.
|
|
438
462
|
|
|
439
|
-
|
|
463
|
+
> **Note**
|
|
464
|
+
> From `11.33.0` onwards, all HTML tags are stripped from user input into custom signup fields.
|
|
440
465
|
|
|
441
466
|
#### Text field
|
|
442
467
|
|
package/Makefile
CHANGED
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ From CDN
|
|
|
30
30
|
|
|
31
31
|
```html
|
|
32
32
|
<!-- Latest patch release (recommended for production) -->
|
|
33
|
-
<script src="https://cdn.auth0.com/js/lock/12.0.
|
|
33
|
+
<script src="https://cdn.auth0.com/js/lock/12.0.2/lock.min.js"></script>
|
|
34
34
|
```
|
|
35
35
|
### Configure Auth0
|
|
36
36
|
|
package/karma.conf.js
CHANGED