diff --git a/articles/libraries/lock/v11/configuration.md b/articles/libraries/lock/v11/configuration.md index ae698bc729..d5c1e9492c 100644 --- a/articles/libraries/lock/v11/configuration.md +++ b/articles/libraries/lock/v11/configuration.md @@ -83,6 +83,7 @@ Authentication options are grouped in the `auth` property of the `options` objec | [prefill](#prefill-object-) | Prefill values for email/username fields | | [signUpLink](#signuplink-string-) | Set a custom url to fire when clicking "sign up" | | [usernameStyle](#usernamestyle-string-) | Limit username field to accept only "username" values or only "email" values | +| [signUpFieldsStrictValidation](#signUpFieldsStrictValidation-boolean-) | Strict format validation for username and email fields at signup | ## Enterprise @@ -878,6 +879,16 @@ var options = { }; ``` +### signUpFieldsStrictValidation {Boolean} + +This option enables strict format validation for username and email fields at the signup screen. This ensures presenting validation errors instead of the generic "We're sorry, something went wrong when attempting to sign up." message. Defaults to `false`. + +```js +var options = { + signUpFieldsStrictValidation: true +}; +``` + ## Enterprise Options ### defaultEnterpriseConnection {String}