1 | import { Handler } from "../../handler";
|
2 | import { BaseTriggerEvent, ChallengeResult, CustomChallengeResult, StringMap } from "./_common";
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | export interface DefineAuthChallengeTriggerEvent extends BaseTriggerEvent<"DefineAuthChallenge_Authentication"> {
|
8 | request: {
|
9 | userAttributes: StringMap;
|
10 | session: Array<ChallengeResult | CustomChallengeResult>;
|
11 | userNotFound?: boolean | undefined;
|
12 | clientMetadata?: StringMap | undefined;
|
13 | };
|
14 | response: {
|
15 | challengeName?: string | undefined;
|
16 | failAuthentication: boolean;
|
17 | issueTokens: boolean;
|
18 | };
|
19 | }
|
20 |
|
21 | export type DefineAuthChallengeTriggerHandler = Handler<DefineAuthChallengeTriggerEvent>;
|