CognitoUserPoolTriggerHandler is depreciated in newer version of aws-lambda
jamie-wearsafe opened this issue · 2 comments
jamie-wearsafe commented
Looking for the correct type.
@deprecated — Please use specific event handler types instead
'CognitoUserPoolTriggerHandler' is deprecated ts(6385)
martinpllu commented
Hi @jamie-wearsafe, I hit this issue too, and after a bit of searching around was able to use the following:
import { CreateAuthChallengeTriggerHandler } from 'aws-lambda';
import { DefineAuthChallengeTriggerHandler } from 'aws-lambda';
import { PostAuthenticationTriggerHandler } from 'aws-lambda';
import { PreSignUpTriggerHandler } from 'aws-lambda';
import { VerifyAuthChallengeResponseTriggerHandler } from 'aws-lambda';