isAuthenticated method

bool isAuthenticated()

Check if authenticated

Implementation

bool isAuthenticated() {
  try {
    final lib = PlatformLoader.loadCommons();
    final isAuth = lib.lookupFunction<Int32 Function(), int Function()>(
        'rac_auth_is_authenticated');
    return isAuth() != 0;
  } catch (e) {
    return false;
  }
}