fix(admin): send bearer token for verification queue
This commit is contained in:
parent
b7dfd070de
commit
7263befc1c
1 changed files with 7 additions and 1 deletions
|
|
@ -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})`);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue