UNPKG

552 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 };
13}
14
15export type PreAuthenticationTriggerHandler = Handler<PreAuthenticationTriggerEvent>;