Closed mawallace closed 6 months ago
Thanks for diving into that. Yes please, open a Pull Request, we really appreciate all these improvements to the event types.
Fixed by #826.
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one.
I wrote a set of Cognito Lambda triggers for a custom auth flow, using the event types provided in this library. When using the auth flow in a web app, I encountered the following error:
It seems like the Cognito is sending an event for the VerifyAuthChallengeResponse trigger with
response.answerCorrect
explicitly set tonull
(not just missing).I patched in this repository and added
deserialize_nullish_boolean
(which is used for other fields in the module) to theanswer_correct
field, like below:This resolved the issue.
If this makes sense to the maintainers, I'm happy to submit a pull request with this change.