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:
copybool isUserLoggedIn = await ZCatalystApp.getInstance().isUserLoggedIn(); //Actions to be executed upon successfully fetching the status
A sample code snippet is shown below:
copybool isUserLoggedIn = await ZCatalystApp.getInstance().isUserLoggedIn(); print(isUserLoggedIn); //prints "true" or "false"
Last Updated 2023-09-03 01:06:41 +0530 +0530
Yes
No
Send your feedback to us
Skip
Submit