API Reference
    Preparing search index...

    Variable PostAuthenticationTriggerSchemaConst

    PostAuthenticationTriggerSchema: ZodObject<
        {
            callerContext: ZodObject<
                { awsSdkVersion: ZodString; clientId: ZodString },
                $strip,
            >;
            region: ZodString;
            request: ZodObject<
                {
                    clientMetadata: ZodOptional<ZodRecord<ZodString, ZodString>>;
                    newDeviceUsed: ZodOptional<ZodBoolean>;
                    userAttributes: ZodRecord<ZodString, ZodString>;
                },
                $strip,
            >;
            response: ZodObject<{}, $strip>;
            triggerSource: ZodLiteral<"PostAuthentication_Authentication">;
            userName: ZodOptional<ZodString>;
            userPoolId: ZodString;
            version: ZodString;
        },
        $strip,
    > = ...

    A zod schema for a Cognito Post-Authentication trigger event.

    {
    "version": "1",
    "triggerSource": "PostAuthentication_Authentication",
    "region": "us-east-1",
    "userPoolId": "us-east-1_ABC123",
    "userName": "johndoe",
    "callerContext": {
    "awsSdkVersion": "2.814.0",
    "clientId": "client123"
    },
    "request": {
    "userAttributes": {
    "email": "user@example.com",
    "name": "John Doe"
    },
    "newDeviceUsed": true,
    "clientMetadata": {
    "customKey": "customValue"
    }
    },
    "response": {}
    }