Skip to content

Commit 35daf21

Browse files
committed
Update formatting and docs
1 parent e0f5257 commit 35daf21

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

docs-devsite/auth.passwordpolicy.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface PasswordPolicy
2323
| Property | Type | Description |
2424
| --- | --- | --- |
2525
| [allowedNonAlphanumericCharacters](./auth.passwordpolicy.md#passwordpolicyallowednonalphanumericcharacters) | string\[\] | List of characters that are considered non-alphanumeric during validation. |
26-
| [customStrengthOptions](./auth.passwordpolicy.md#passwordpolicycustomstrengthoptions) | { readonly minPasswordLength?: number; readonly maxPasswordLength?: number; readonly containsLowercaseLetter?: boolean; readonly containsUppercaseLetter?: boolean; readonly containsNumericCharacter?: boolean; readonly containsNonAlphanumericCharacter?: boolean; } | Requirements enforced by this password policy. |
26+
| [customStrengthOptions](./auth.passwordpolicy.md#passwordpolicycustomstrengthoptions) | PasswordPolicyCustomStrengthOptions | Requirements enforced by this password policy. |
2727

2828
## PasswordPolicy.allowedNonAlphanumericCharacters
2929

@@ -32,7 +32,7 @@ List of characters that are considered non-alphanumeric during validation.
3232
<b>Signature:</b>
3333

3434
```typescript
35-
readonly allowedNonAlphanumericCharacters: string[];
35+
readonly allowedNonAlphanumericCharacters?: string[];
3636
```
3737

3838
## PasswordPolicy.customStrengthOptions
@@ -42,12 +42,5 @@ Requirements enforced by this password policy.
4242
<b>Signature:</b>
4343

4444
```typescript
45-
readonly customStrengthOptions: {
46-
readonly minPasswordLength?: number;
47-
readonly maxPasswordLength?: number;
48-
readonly containsLowercaseLetter?: boolean;
49-
readonly containsUppercaseLetter?: boolean;
50-
readonly containsNumericCharacter?: boolean;
51-
readonly containsNonAlphanumericCharacter?: boolean;
52-
};
45+
readonly customStrengthOptions: PasswordPolicyCustomStrengthOptions;
5346
```

packages/auth/src/model/password_policy.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { PasswordPolicy, PasswordValidationStatus } from "./public_types";
18+
import { PasswordPolicy, PasswordValidationStatus } from './public_types';
1919

2020
/**
2121
* Custom strength options supported in the password policy.
@@ -68,11 +68,12 @@ export interface PasswordPolicyInternal extends PasswordPolicy {
6868

6969
/**
7070
* Internal typing of password validation status that is modifiable. This allows us to
71-
* construct the validation status before returning it
72-
*
71+
* construct the validation status before returning it.
72+
*
7373
* @internal
7474
*/
75-
export interface PasswordValidationStatusInternal extends PasswordValidationStatus {
75+
export interface PasswordValidationStatusInternal
76+
extends PasswordValidationStatus {
7677
/**
7778
* Whether the password meets all requirements.
7879
*/

0 commit comments

Comments
 (0)