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 2024-09-12 18:16:13 +0530 +0530

ON THIS PAGE