Sam Hulick
08/02/2021, 9:27 PMconst userPool = auth.node.defaultChild as cognito.CfnUserPool;
userPool.lambdaConfig = {
customEmailSender: {
lambdaArn: props.cognitoEmailSender.functionArn,
},
};
I get this error: TypeError: Cannot set property 'lambdaConfig' of undefined. any ideas how I’d set this? TypeScript did give the OK here.. but apparently defaultChild doesn’t exist in this casethdxr
08/02/2021, 9:30 PMauth.node is coming fromSam Hulick
08/02/2021, 9:30 PMauth is an instance of sst.AuthSam Hulick
08/02/2021, 9:32 PMconst userPool = auth.cognitoUserPool.node.defaultChild as cognito.CfnUserPool;thdxr
08/02/2021, 9:32 PMauth.cognitoUserPool!.addTriggerSam Hulick
08/02/2021, 9:32 PMnew sst.Auth()thdxr
08/02/2021, 9:34 PM