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-post-authentication.html
|
6 | */
|
7 | export interface PostAuthenticationTriggerEvent extends BaseTriggerEvent<"PostAuthentication_Authentication"> {
|
8 | request: {
|
9 | userAttributes: StringMap;
|
10 | newDeviceUsed: boolean;
|
11 | clientMetadata?: StringMap | undefined;
|
12 | };
|
13 | }
|
14 |
|
15 | export type PostAuthenticationTriggerHandler = Handler<PostAuthenticationTriggerEvent>;
|