@stytch/vanilla-js 1.1.2 → 1.1.4

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @stytch/vanilla-js
2
2
 
3
+ ## 1.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - f3d8a3b: Updated UI to include error message for breached passwords. Added missing `breach_detection_on_create` key in the strength check response
8
+ - Updated dependencies [f3d8a3b]
9
+ - @stytch/core@0.14.4
10
+
11
+ ## 1.1.3
12
+
13
+ ### Patch Changes
14
+
15
+ - 83c017e: Updated types for the password strength method. Updated UI for the password strength check while using LUDS
16
+ - Updated dependencies [83c017e]
17
+ - @stytch/core@0.14.3
18
+
3
19
  ## 1.1.2
4
20
 
5
21
  ### Patch Changes
@@ -334,6 +334,16 @@ type B2BPasswordStrengthCheckResponse = MemberResponseCommon & {
334
334
  * Determines if the password has been breached using {@link https://haveibeenpwned.com/ HaveIBeenPwned}.
335
335
  */
336
336
  breached_password: boolean;
337
+ /**
338
+ * Will return true if breach detection will be evaluated. By default this option is enabled.
339
+ * This option can be disabled by contacting support@stytch.com. If this value is false then
340
+ * breached_password will always be false as well.
341
+ */
342
+ breach_detection_on_create: boolean;
343
+ /**
344
+ * The strength policy type enforced, either `zxcvbn` or `luds`.
345
+ */
346
+ strength_policy: "luds" | "zxcvbn";
337
347
  /**
338
348
  * Feedback for how to improve the password's strength using {@link https://github.com/dropbox/zxcvbn zxcvbn}.
339
349
  */
@@ -334,6 +334,16 @@ type B2BPasswordStrengthCheckResponse = MemberResponseCommon & {
334
334
  * Determines if the password has been breached using {@link https://haveibeenpwned.com/ HaveIBeenPwned}.
335
335
  */
336
336
  breached_password: boolean;
337
+ /**
338
+ * Will return true if breach detection will be evaluated. By default this option is enabled.
339
+ * This option can be disabled by contacting support@stytch.com. If this value is false then
340
+ * breached_password will always be false as well.
341
+ */
342
+ breach_detection_on_create: boolean;
343
+ /**
344
+ * The strength policy type enforced, either `zxcvbn` or `luds`.
345
+ */
346
+ strength_policy: "luds" | "zxcvbn";
337
347
  /**
338
348
  * Feedback for how to improve the password's strength using {@link https://github.com/dropbox/zxcvbn zxcvbn}.
339
349
  */