tork-web icon indicating copy to clipboard operation
tork-web copied to clipboard

[feature request] Passing Authorization (Bearer) after enabled "middleware.web.keyauth" on backend

Open rognoni opened this issue 6 months ago • 0 comments

Hello 👋 is this the only way at the moment to pass the KEY AUTH ?

  const res = await fetch(`${envConfig.backendUrl}/jobs?page=${page}&q=${q}`, {
    cache: 'no-cache',
    headers: {
      Authorization: `Bearer 24c8e5bb-e06b-46c8-a02e-28c1be99914c`,
    },
  });
  if (!res.ok) {
    throw new Error('Failed to fetch data');
  }

rognoni avatar Nov 03 '25 14:11 rognoni