Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}).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);
return function (dispatch) {
cookie.remove('authData', { path: '/' });
return Zergling.logout();
};
}
function setToken(loginToken, expires) {
if (loginToken && expires !== -1) {
cookie.save('meteor_login_token', loginToken, {
path: '/',
expires,
});
} else {
cookie.remove('meteor_login_token', {
path: '/',
});
}
}
clearOptions() {
this.options = {};
reactCookie.remove('quran');
reactCookie.remove('content');
reactCookie.remove('audio');
}
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');
};
clearAuth(){
cookie.remove("token","/");
cookie.remove("avatar","/");
cookie.remove("username","/");
}
}
delete(key, opt={}) {
cookie.remove(key, getMergedOptions(opt))
},
function signOut(e) {
cookie.remove(tokenKey);
}
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');
};
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');
};