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( newUser: ZCatalystUser, success: (Pair<ZCatalystOrg, ZCatalystUser>) → Unit, failure: ((ZCatalystException) → Unit)? ): ZCatalystRequest<ZCatalystResponse<Pair<ZCatalystOrg, ZCatalystUser>>>?

Parameters:

  • newUser: The user instance created before this operation

A sample code snippet is shown below:

    
copy
ZCatalystApp.getInstance().signUp(user, { success -> println("User Sign up success") }, { exception -> println("User Sign up failed $exception") })

Last Updated 2023-09-03 01:06:41 +0530 +0530

ON THIS PAGE