aws-samples/amazon-cognito-passwordless-email-auth

CognitoUserPoolTriggerHandler is depreciated in newer version of aws-lambda

jamie-wearsafe opened this issue · 2 comments

Looking for the correct type.

@deprecated — Please use specific event handler types instead

'CognitoUserPoolTriggerHandler' is deprecated ts(6385)

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';

Thanks! Fixed in #31