isLoggedIn method

  1. @override
Future isLoggedIn({
  1. required MethodCall call,
})
override

Implementation

@override
Future isLoggedIn({required MethodCall call}) async{
  final isLoggedIn = await _getModuleInstance().isLoggedIn();
  return {
    "success": true,
    "message": isLoggedIn ? "User is logged in" : "User is not logged in",
    "data": {
      "isLoggedIn": isLoggedIn
    }
  };
}