How to use the react-cookie.remove function in react-cookie

To help you get started, we’ve selected a few react-cookie 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 cdapio / cdap / cdap-ui / app / cdap / components / Wrangler / TopPanel / WorkspaceModal.js View on Github external
}).subscribe((res) => {
      console.log(res);
      this.setState({
        messageType: 'SUCCESS',
        message: res.message
      });

      if (this.state.workspaceId === this.state.activeWorkspace) {
        WranglerStore.dispatch({
          type: WranglerActions.setWorkspace,
          payload: {
            workspaceId: ''
          }
        });

        cookie.remove('WRANGLER_WORKSPACE');
      }
    }, (err) => {
      console.log(err);
github BetConstruct / spring-front-end-mobile / dev / actions / login.js View on Github external
return function (dispatch) {
        cookie.remove('authData', { path: '/' });
        return Zergling.logout();
    };
}
github VulcanJS / Vulcan / packages / nova-lib / lib / client / auth.js View on Github external
function setToken(loginToken, expires) {
  if (loginToken && expires !== -1) {
    cookie.save('meteor_login_token', loginToken, {
      path: '/',
      expires,
    });
  } else {
    cookie.remove('meteor_login_token', {
      path: '/',
    });
  }
}
github quran / quran.com-frontend / src / scripts / stores / UserStore.js View on Github external
clearOptions() {
    this.options = {};

    reactCookie.remove('quran');
    reactCookie.remove('content');
    reactCookie.remove('audio');
  }
github quran / quran.com-frontend / src / client / index.tsx View on Github external
window.clearCookies = () => {
  reactCookie.remove('quran');
  reactCookie.remove('content');
  reactCookie.remove('audio');
  reactCookie.remove('isFirstTime');
  reactCookie.remove('currentLocale');
  reactCookie.remove('smartbanner-closed');
  reactCookie.remove('smartbanner-installed');
};
github cuiods / WIFIProbe / statDisplay / src / utils / BasicAuth.js View on Github external
clearAuth(){
    cookie.remove("token","/");
    cookie.remove("avatar","/");
    cookie.remove("username","/");
  }
}
github lifechurch / melos / app / lib / localStore.js View on Github external
delete(key, opt={}) {
		cookie.remove(key, getMergedOptions(opt))
	},
github quran / quran.com-frontend / src / client.js View on Github external
window.clearCookies = () => {
  reactCookie.remove('quran');
  reactCookie.remove('content');
  reactCookie.remove('audio');
  reactCookie.remove('isFirstTime');
  reactCookie.remove('currentLocale');
  reactCookie.remove('smartbanner-closed');
  reactCookie.remove('smartbanner-installed');
};
github quran / quran.com-frontend / src / client / index.tsx View on Github external
window.clearCookies = () => {
  reactCookie.remove('quran');
  reactCookie.remove('content');
  reactCookie.remove('audio');
  reactCookie.remove('isFirstTime');
  reactCookie.remove('currentLocale');
  reactCookie.remove('smartbanner-closed');
  reactCookie.remove('smartbanner-installed');
};