API Reference
    Preparing search index...

    Variable PreAuthenticationTriggerSchemaConst

    PreAuthenticationTriggerSchema: ZodObject<
        {
            callerContext: ZodObject<
                { awsSdkVersion: ZodString; clientId: ZodString },
                $strip,
            >;
            region: ZodString;
            request: ZodObject<
                {
                    userAttributes: ZodRecord<ZodString, ZodString>;
                    userNotFound: ZodOptional<ZodBoolean>;
                    validationData: ZodOptional<ZodRecord<ZodString, ZodString>>;
                },
                $strip,
            >;
            response: ZodObject<{}, $strip>;
            triggerSource: ZodLiteral<"PreAuthentication_Authentication">;
            userName: ZodOptional<ZodString>;
            userPoolId: ZodString;
            version: ZodString;
        },
        $strip,
    > = ...

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

    {
    "version": "1",
    "triggerSource": "PreAuthentication_Authentication",
    "region": "us-east-1",
    "userPoolId": "us-east-1_ABC123",
    "request": {
    "userAttributes": {
    "email": "user@example.com",
    "name": "John Doe"
    },
    "validationData": {
    "someKey": "someValue"
    },
    "userNotFound": false
    },
    "response": {}
    }