UNPKG

610 BTypeScriptView Raw
1import { Handler } from "../../handler";
2import { BaseTriggerEvent, StringMap } from "./_common";
3
4/**
5 * @see https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-authentication.html
6 */
7export 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
16export type PreAuthenticationTriggerHandler = Handler<PreAuthenticationTriggerEvent>;