From d38d825e3484d822ea3c1f0fb1df37ecf386b18a Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 04 Jan 2026 19:54:16 +0000
Subject: [PATCH] =TaxonomyCreator.js debugging

---
 inc/admin/Integrations.php |   28 ++++++++++++++++++----------
 1 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/inc/admin/Integrations.php b/inc/admin/Integrations.php
index a774548..4f47744 100644
--- a/inc/admin/Integrations.php
+++ b/inc/admin/Integrations.php
@@ -64,20 +64,28 @@
 		wp_enqueue_script(
 			'jvb-admin-scripts',
 			JVB_URL . 'assets/js/min/integrations.min.js',
-			[],
+			['jvb-auth'],
 			'1.0.0',
 			true
 		);
 
-		wp_localize_script(
-			'jvb-admin-scripts',
-			'jvbSettings',
-			[
-				'api'    => rest_url('jvb/v1/'),
-				'currentUser'	=> get_current_user_id(),
-				'nonce'  => wp_create_nonce('wp_rest'),
-			]
-		);
+		$queue = [
+			'api' => rest_url('jvb/v1/'),
+			'redirect' => wp_login_url(home_url(add_query_arg(null, null))),
+			'labels' => jvbGetLabels(),
+		];
+
+		wp_localize_script('jvb-auth', 'jvbSettings', $queue);
+//
+//		wp_localize_script(
+//			'jvb-admin-scripts',
+//			'jvbSettings',
+//			[
+//				'api'    => rest_url('jvb/v1/'),
+//				'currentUser'	=> get_current_user_id(),
+//				'nonce'  => wp_create_nonce('wp_rest'),
+//			]
+//		);
 	}
 
 	/**

--
Gitblit v1.10.0