tork-web
tork-web copied to clipboard
[feature request] Passing Authorization (Bearer) after enabled "middleware.web.keyauth" on backend
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');
}