We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ad4253 commit 048dcb4Copy full SHA for 048dcb4
auth/README.md
@@ -35,14 +35,15 @@ Returns:
35
```js
36
import { useAuthState } from 'react-firebase-hooks/auth';
37
38
+const login = () => {
39
+ firebase.auth().signInWithEmailAndPassword('test@test.com', 'password');
40
+};
41
+const logout = () => {
42
+ firebase.auth().signOut();
43
44
+
45
const CurrentUser = () => {
46
const [user, loading, error] = useAuthState(firebase.auth());
- const login = () => {
- firebase.auth().signInWithEmailAndPassword('test@test.com', 'password');
- };
- const logout = () => {
- firebase.auth().signOut();
47
48
if (loading) {
49
return (
0 commit comments