wpUserLoggedIn static method

Future<bool> wpUserLoggedIn()

Check if a user is logged in

Implementation

static Future<bool> wpUserLoggedIn() async {
  WpUser? _wpUser = await wpUser();
  if (_wpUser == null) {
    return false;
  }
  if (_wpUser.token == null) {
    return false;
  }
  return true;
}