Skip to content

Commit 6038014

Browse files
authored
feat(prompts): add brute force protection in screen types and different screenTypes related to it (#1221)
* feat(prompts): add brute force protection in screen types and different screenTypes related to it * feat(prompts): add brute-force-protection custom texts and update tests - Introduced custom text handling for brute-force protection prompts. - Updated tests to include scenarios for retrieving and updating brute-force protection custom texts. - Refactored existing tests to ensure compatibility with new prompt structure. - Stubbed new prompts in tests to return appropriate responses. - Ensured that brute-force protection settings are correctly integrated into the prompts handler. * test cases refactored
1 parent 128605d commit 6038014

File tree

6 files changed

+16108
-9616
lines changed

6 files changed

+16108
-9616
lines changed

src/tools/auth0/handlers/prompts.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const promptTypes = [
4040
'common',
4141
'captcha',
4242
'passkeys',
43+
'brute-force-protection',
4344
] as const;
4445

4546
export type PromptTypes = (typeof promptTypes)[number];
@@ -106,6 +107,9 @@ const screenTypes = [
106107
'login-passwordless-sms-otp',
107108
'passkey-enrollment',
108109
'passkey-enrollment-local',
110+
'brute-force-protection-unblock',
111+
'brute-force-protection-unblock-success',
112+
'brute-force-protection-unblock-failure',
109113
] as const;
110114

111115
export type ScreenTypes = (typeof screenTypes)[number];

0 commit comments

Comments
 (0)