Skip to content

Instantly share code, notes, and snippets.

@AndrejGajdos
Created June 24, 2018 08:33
Show Gist options
  • Save AndrejGajdos/529c3d4d9e6cd161b7ccc59f8a3c80dd to your computer and use it in GitHub Desktop.
Save AndrejGajdos/529c3d4d9e6cd161b7ccc59f8a3c80dd to your computer and use it in GitHub Desktop.
onFacebookLogin = () => {
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000);
Cookies.set('lastLocation_before_logging', this.props.location.pathname, { expires: inOneHour });
window.location.href = `${window.location.origin}/auth/facebook`;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment