Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const handleLogin = () => {
const user = new Parse.User();
user.set('username', userName);
user.set('password', password);
user.logIn().then((user) => {
history.push('/')
}).catch(err => {
alert(err.message);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment