User Logout

The logout() method can log an app user out from the Catalyst Flutter app.

The code syntax for user logout is given below:

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

A sample code snippet is shown below:

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

Last Updated 2023-09-03 11:54:50 +0530 +0530

ON THIS PAGE