User Login

You can display the login page to the end user of your Catalyst Flutter app using the login() method. This will be displayed when the user is logged out of the app. If the login is successful, the user will be able to access the app.

The code syntax for user login is given below:

    
copy
ZCatalystApp.getInstance().login( void Function() onSuccess, void Function(ZCatalystException) onFailed )

A sample code snippet is shown below:

    
copy
ZCatalystApp.getInstance().login(onSuccess: () { print('Login Success'); //Actions to be executed upon a successful login }, onFailed: (ZCatalystException exception) { print('Login failed: $exception'); //Actions to be executed upon failure });

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

ON THIS PAGE