Skip to content

Instantly share code, notes, and snippets.

@gragland
Created March 17, 2020 03:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gragland/1d47d265b841cdf09e7fc7e6801c039e to your computer and use it in GitHub Desktop.
Save gragland/1d47d265b841cdf09e7fc7e6801c039e to your computer and use it in GitHub Desktop.
const signinAnonymously = () => {
return firebase.auth().signInAnonymously()
.then(response => {
setUser(response.user);
return response.user;
});
};
etc...
return {
user,
signup,
signin,
signinAnonymously,
signinWithProvider,
signout,
sendPasswordResetEmail,
confirmPasswordReset
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment