1 | import { Handler } from "../../handler";
|
2 | import { BaseTriggerEvent, StringMap } from "./_common";
|
3 |
|
4 | /**
|
5 | * @see https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-authentication.html
|
6 | */
|
7 | export interface PreAuthenticationTriggerEvent extends BaseTriggerEvent<"PreAuthentication_Authentication"> {
|
8 | request: {
|
9 | userAttributes: StringMap;
|
10 | userNotFound?: boolean | undefined;
|
11 | validationData?: StringMap | undefined;
|
12 | clientMetadata?: StringMap | undefined;
|
13 | };
|
14 | }
|
15 |
|
16 | export type PreAuthenticationTriggerHandler = Handler<PreAuthenticationTriggerEvent>;
|