Change menu for logged in users

Create new menu called logged-in then use following filter

add_filter( 'wp_nav_menu_args', function( $args ) {
	if ( 'header' === $args['theme_location'] && is_user_logged_in() ) {
		$args['menu'] = 'logged-in';
	}
	return $args;
}, 11 );