Closed idobleicher closed 1 year ago
Hi @iuyt9003
Following up on this - if you are still facing this problem, you can remove the callback method from your function. However, since the underlying function is a Lambda, removing the call back requires you to update the handler from a Non-Async handler to an Async handler
Also, please note that the default generated handler was updated in the past to be an async handler by default.
Before opening, please confirm:
JavaScript Framework
Angular
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
When adding a trigger via the auth flow, trigger name: post-confirmation. The default code is calling the event with a callback.
but the callback itself is undefined. which causes an error.
exports.handler = (event, context, callback) => { // insert code to be executed by your lambda trigger callback(null, event); };
callback(null, event) -- here is the error.
Expected behavior
Why is there a callback? if it's undefined. Maybe to remove it? or maybe to tell what to do with it![image](https://user-images.githubusercontent.com/23431551/138098216-4fa39024-1a97-4a2d-b1f7-cb18b94201db.png)
Reproduction steps
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response