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:

    
copy
ZCatalystApp.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:

    
copy
var 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

ON THIS PAGE