User Signup
You can add a new user to your Catalyst app by calling the signUp() method. You must pass the user instance defined here as the argument to the signup() method.
The code syntax for user signup is given below:
copyZCatalystApp.getInstance().signUp( ZCatalystUser newUser, void Function(Pair
) onSuccess, void Function(ZCatalystException) onFailed )
Parameters:
- newUser: The user instance created before this operation
A sample code snippet is shown below:
copyvar user = ZCatalystApp.getInstance() .newUser(emailId: 'Burrows', lastName: 'emma@zylker.com'); ZCatalystApp.getInstance().signUp( newUser: user, onSuccess: (APIResponse response, ZCatalystUser user) { print('User sign up success: ${user.id}'); //Actions to be executed upon a successful login }, onFailed: (ZCatalystException exception) { print('Exception thrown: $exception'); //Actions to be executed upon failure });
Last Updated 2023-09-03 01:06:41 +0530 +0530
Yes
No
Send your feedback to us
Skip
Submit