Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.