Are you using Next.js? If so, the AuthUpdater component needs to be marked as a client component using "use client", since you're using a hook from it (i.e. useAppDispatch()). Hooks can only be used in client components.
"use client"
...
export const AuthUpdater = () => {
const dispatch = useAppDispatch();
...
};
I ran into this same issue myself and had a little trouble identifying the error.