File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -762,7 +762,7 @@ The `useSignOut` hook takes the following parameters:
762
762
Returns:
763
763
764
764
- ` signOut() ` : A ` () => Promise<void> ` function you can call to sign out current user
765
- - ` loading ` : A ` boolean ` to indicate whether operation is loading
765
+ - ` loading ` : A ` boolean ` to indicate whether the user is being signed out
766
766
- ` error ` : Any ` Error ` returned by Firebase when trying to sign out user, or ` undefined ` if there is no error
767
767
768
768
#### Full Example
@@ -804,16 +804,16 @@ const SignOut = () => {
804
804
const [deleteUser , loading , error ] = useDeleteUser (auth);
805
805
```
806
806
807
- Delete current user. Wraps the underlying ` auth.currrentUser.signOut ` method and provides additional ` loading ` and ` error ` information.
807
+ Delete current user. Wraps the underlying ` auth.currrentUser.delete ` method and provides additional ` loading ` and ` error ` information.
808
808
809
809
The ` useDeleteUser ` hook takes the following parameters:
810
810
811
811
- ` auth ` : ` Auth ` instance for the app you would like to monitor
812
812
813
813
Returns:
814
814
815
- - ` deleteUser() ` : A ` () => Promise<void> ` function you can call to sign out current user
816
- - ` loading ` : A ` boolean ` to indicate whether operation is loading
815
+ - ` deleteUser() ` : A ` () => Promise<void> ` function you can call to delete the current user
816
+ - ` loading ` : A ` boolean ` to indicate whether the deletion is processing
817
817
- ` error ` : Any ` Error ` returned by Firebase when trying to delete user, or ` undefined ` if there is no error
818
818
819
819
#### Full Example
You can’t perform that action at this time.
0 commit comments