isCustomerLoggedIn method

Future<bool> isCustomerLoggedIn()

Confirm if a customer is logged in true or out false.

Implementation

Future<bool> isCustomerLoggedIn() async {
  String sToken = await _localDbService.getSecurityToken();
  if (sToken == '0') {
    return false;
  } else {
    return true;
  }
}