needsRefresh method

bool needsRefresh()

Check if token needs refresh

Implementation

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