useAuth() hook provides access to the current user’s authentication state.
Returns
An object with the following properties:The User object of the currently authenticated user, or
null if the user is not authenticated.