User Authentication Status

You can find the authentication status of an app user using the isUserLoggedIn() method. This will return a boolean response as to the user’s login status.

The code syntax for user logout is given below:

copy
bool isUserLoggedIn = await ZCatalystApp.getInstance().isUserLoggedIn();
//Actions to be executed upon successfully fetching the status

A sample code snippet is shown below:

copy
bool isUserLoggedIn = await ZCatalystApp.getInstance().isUserLoggedIn();
print(isUserLoggedIn); //prints "true" or "false"

Last Updated 2025-08-28 12:01:44 +0530 IST

ON THIS PAGE