jagregory / cognito-local

Local emulator for Amazon Cognito
MIT License
289 stars 74 forks source link

feat(api): support for custom email sender trigger #234

Closed kylefix closed 2 years ago

kylefix commented 2 years ago

hello sir,

this PR adds (partial) support for the CustomEmailSender trigger for these trigger sources:

CustomEmailSender_SignUp
CustomEmailSender_ResendCode 
CustomEmailSender_ForgotPassword
CustomEmailSender_UpdateUserAttribute
CustomEmailSender_VerifyUserAttribute
CustomEmailSender_AdminCreateUser

also partially addresses https://github.com/jagregory/cognito-local/issues/102 by saving the e-mail as a UserAttribute when the UserPool is configured with UsernameAttributes: ['email']

lmk if there is anything I overlooked

Thank you for this great tool, really awesome codebase!

jagregory commented 2 years ago

Thanks @kylefix this looks great! Sorry for the slow response, GitHub seems to periodically stop sending me notifications about this repo for some reason 🤷

I'll have a proper review tonight and will merge, but looks good so far. Thanks

github-actions[bot] commented 2 years ago

:tada: This PR is included in version 3.18.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: