Refactor how user info is accessed based on the authentication method you're using.
By default, the project uses static mocked user data for development:
import { useMockedUser } from 'src/auth/hooks'; const { user } = useMockedUser();
To retrieve actual user info based on the selected authentication strategy, update your code like this:
import { useAuthContext } from 'src/auth/hooks'; const { user } = useAuthContext();