react-query-firebase / useCurrentUser
Function: useCurrentUser()
ts
function useCurrentUser(): User | null;Defined in: src/web/auth/useCurrentUser.ts:10
Hook that provides the current authenticated user from Firebase Auth. It listens for changes in the authentication state and updates the user accordingly.
Returns
User | null
The current authenticated user object or null if no user is authenticated.