axios-auth-refresh icon indicating copy to clipboard operation
axios-auth-refresh copied to clipboard

async shouldRefresh

Open reslear opened this issue 2 years ago • 0 comments

feature request shouldRefresh as promise

async shouldRefresh(error: AxiosError): Promise<boolean> {
  const value = await localforage.getItem('refresh_token');
  return Boolean(value)
}

reslear avatar Nov 29 '22 20:11 reslear