Skip to content

Commit 048dcb4

Browse files
committed
Tweak Auth README.md
1 parent 3ad4253 commit 048dcb4

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

auth/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,15 @@ Returns:
3535
```js
3636
import { useAuthState } from 'react-firebase-hooks/auth';
3737

38+
const login = () => {
39+
firebase.auth().signInWithEmailAndPassword('[email protected]', 'password');
40+
};
41+
const logout = () => {
42+
firebase.auth().signOut();
43+
};
44+
3845
const CurrentUser = () => {
3946
const [user, loading, error] = useAuthState(firebase.auth());
40-
const login = () => {
41-
firebase.auth().signInWithEmailAndPassword('[email protected]', 'password');
42-
};
43-
const logout = () => {
44-
firebase.auth().signOut();
45-
};
4647

4748
if (loading) {
4849
return (

0 commit comments

Comments
 (0)