From 50d5b0cb368a50b6f9ec8adad7a68cbca1d2add7 Mon Sep 17 00:00:00 2001 From: rr-bw <102181210+rr-bw@users.noreply.github.com> Date: Thu, 3 Apr 2025 10:53:49 -0700 Subject: [PATCH] update storybook docs --- .../angular/input-password/input-password.mdx | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/libs/auth/src/angular/input-password/input-password.mdx b/libs/auth/src/angular/input-password/input-password.mdx index c1edcc254a7..f12dd7de23b 100644 --- a/libs/auth/src/angular/input-password/input-password.mdx +++ b/libs/auth/src/angular/input-password/input-password.mdx @@ -90,20 +90,25 @@ When the form is submitted, the `InputPasswordComponent` does the following in o continue with the password or to back out and choose a different password. 2. If there is a master password policy being enforced by an org, it will check to make sure the entered master password meets the policy requirements. -3. The component will use the password, email, and default kdfConfig to create a master key and - master key hash. +3. The component will use the password, email, and kdfConfig to create cryptographic properties. 4. The component will emit the following values (defined in the `PasswordInputResult` interface) to be used by the parent component as needed: ```typescript export interface PasswordInputResult { + // Properties starting with "current..." are included if the flow is ChangePassword or ChangePasswordWithOptionalUserKeyRotation + currentPassword?: string; + currentMasterKey?: MasterKey; + currentServerMasterKeyHash?: string; + currentLocalMasterKeyHash?: string; + newPassword: string; - hint: string; - kdfConfig: PBKDF2KdfConfig; - masterKey: MasterKey; - serverMasterKeyHash: string; - localMasterKeyHash: string; - currentPassword?: string; // included if the flow is ChangePassword or ChangePasswordWithOptionalUserKeyRotation + newPasswordHint: string; + newMasterKey: MasterKey; + newServerMasterKeyHash: string; + newLocalMasterKeyHash: string; + + kdfConfig: KdfConfig; rotateUserKey?: boolean; // included if the flow is ChangePasswordWithOptionalUserKeyRotation } ```