Created
October 13, 2019 13:00
-
-
Save luandevpro/30cd78e7f0d4c2c8fb094ff2692c257f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
import { auth, providerGoogle } from '../lib/firebase'; | |
function Index() { | |
... | |
const handleAuth = () => { | |
auth.signInWithPopup(providerGoogle).then((result) => { | |
console.log(result); | |
}); | |
}; | |
return ( | |
<div className="container mt-5"> | |
<button type="button" className="mt-5 mb-5 btn btn-primary" onClick={handleAuth}> | |
</button> | |
... | |
</div> | |
); | |
} | |
export default withRedux(Index); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment