useUser
Hook to get the currently logged in user.
Returns
The currently logged in user or null if not logged in, as well as a loading state.
type ReturnType = {
isLoading: boolean;
isLoggedIn: boolean;
user: undefined | UserWithData<TData, TContext>;
};