When I call the function I can see that the user is created and the signUpSuccessful() function is called when the user is successfully register. When I try and print the “user” the console shows it is undefined. The odd this is that the signUpError() function is also called showing that there was an error when registering the user. The full CodeRunner Console read out is below.
20:03:59.019 - [DFF8B34A-A1A4-9565-FF19-2D632D9EE200] New task arrived! user has been registered undefined I am in the signUpError 20:03:59.034 - [DFF8B34A-A1A4-9565-FF19-2D632D9EE200] Processing finished 20:03:59.034 - Error: Cannot read property 'message' of undefined
The code for my custom Business Logic function is below.
Any help would be appreciated.