Skip to content

Instantly share code, notes, and snippets.

@aloukissas aloukissas/Login.js
Created Jan 14, 2019

Embed
What would you like to do?
handleSubmit = async () => {
try {
await Auth.signIn(this.state.email, this.state.password);
this.props.auth.setAuthenticated(true);
} catch (error) {
Alert.alert("Error logging in", error, { text: "OK" });
}
};
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.