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:
762762Returns:
763763
764764- ` 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
766766- ` error ` : Any ` Error ` returned by Firebase when trying to sign out user, or ` undefined ` if there is no error
767767
768768#### Full Example
@@ -804,16 +804,16 @@ const SignOut = () => {
804804const [deleteUser , loading , error ] = useDeleteUser (auth);
805805```
806806
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.
808808
809809The ` useDeleteUser ` hook takes the following parameters:
810810
811811- ` auth ` : ` Auth ` instance for the app you would like to monitor
812812
813813Returns:
814814
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
817817- ` error ` : Any ` Error ` returned by Firebase when trying to delete user, or ` undefined ` if there is no error
818818
819819#### Full Example
You can’t perform that action at this time.
0 commit comments