isAuthenticated static method

bool isAuthenticated()

Implementation

static bool isAuthenticated() {
  // If there is a cookie set for the application or an identity cookie present in
  // the browser cookies

  if (_accessCookie != null) {
    return true;
  }

  if (_identity != null) {
    return true;
  }

  // Lazy load for web browsers
  return _setIdentityData(getIdentityCookie());
}