Skip to content

Instantly share code, notes, and snippets.

@zackbraksa
Last active March 29, 2021 13:23
Show Gist options
  • Save zackbraksa/64b36f28aeb796e8ea83da3da9607bf6 to your computer and use it in GitHub Desktop.
Save zackbraksa/64b36f28aeb796e8ea83da3da9607bf6 to your computer and use it in GitHub Desktop.
try {
await auth().signInWithPopup(provider);
const user = await auth().currentUser;
setUser(user);
} catch(e) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment