From 7263befc1c94be5764a7f9896e017fe7ee639982 Mon Sep 17 00:00:00 2001 From: Ashwin Kumar Sivakumar Date: Sun, 5 Jul 2026 18:10:12 +0530 Subject: [PATCH] fix(admin): send bearer token for verification queue --- src/routes/admin/verification/index.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/routes/admin/verification/index.tsx b/src/routes/admin/verification/index.tsx index 3bb17bb..225f34c 100644 --- a/src/routes/admin/verification/index.tsx +++ b/src/routes/admin/verification/index.tsx @@ -157,8 +157,14 @@ export default function VerificationManagementPage() { const load = async () => { try { setError(''); + const accessToken = typeof sessionStorage !== 'undefined' + ? sessionStorage.getItem('nxtgauge_admin_access_token') || '' + : ''; const res = await fetch(`${API}/api/admin/verifications?page=1&limit=200`, { - headers: { Accept: 'application/json' }, + headers: { + Accept: 'application/json', + ...(accessToken ? { Authorization: `Bearer ${accessToken}` } : {}), + }, credentials: 'include', }); if (!res.ok) throw new Error(`Failed to load verification queue (${res.status})`);