How to use the @aws-amplify/cache.removeItem function in @aws-amplify/cache

To help you get started, we’ve selected a few @aws-amplify/cache examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TreeHacks / root / src / store / auth / actions.ts View on Github external
return dispatch => {
    loadingStart();
    console.log("signing out");
    Cache.removeItem("federatedInfo");
    localStorage.clear();
    Auth.signOut().then(e => {
      loadingEnd();
      dispatch(loggedOut());
    })
  }
}

@aws-amplify/cache

Cache category of aws-amplify

Apache-2.0
Latest version published 1 year ago

Package Health Score

75 / 100
Full package analysis

Similar packages