Skip to content

Commit e14faa3

Browse files
author
Sammy Fattah
committed
Updated auth README changing the user return type, if not logged in, from undefined to null
1 parent ef58420 commit e14faa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The `useAuthState` hook takes the following parameters:
2828

2929
Returns:
3030

31-
- `user`: The `firebase.User` if logged in, or `undefined` if not
31+
- `user`: The `firebase.User` if logged in, or `null` if not
3232
- `loading`: A `boolean` to indicate whether the the authentication state is still being loaded
3333
- `error`: Any `firebase.auth.Error` returned by Firebase when trying to load the user, or `undefined` if there is no error
3434

0 commit comments

Comments
 (0)