This helped me.
wp_localize_script( 'ap-otp-modal', 'ap_otp', [
'logourl' => wp_get_attachment_image_url( get_theme_mod( 'custom_logo' ) , 'full' )
]);
This helped me.
wp_localize_script( 'ap-otp-modal', 'ap_otp', [
'logourl' => wp_get_attachment_image_url( get_theme_mod( 'custom_logo' ) , 'full' )
]);