Skip to content

Commit a910f32

Browse files
committed
feat(parser): add ChallengeResult schema for authentication flows
1 parent 7b424fa commit a910f32

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/parser/src/schemas/cognito.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,11 @@ export const CustomSMSSenderTriggerSchema = z.object({
402402
response: z.object({}),
403403
});
404404

405-
const ChallengeResultSchema = z.object({});
405+
const ChallengeResultSchema = z.object({
406+
challengeName: z.string(),
407+
challengeResult: z.boolean(),
408+
challengeMetadata: z.string().optional(),
409+
});
406410

407411
/**
408412
* A zod schema for a Cognito Define Auth Challenge trigger event.

0 commit comments

Comments
 (0)