Add curator special curation flow and shared editor

This commit is contained in:
Hördle Bot
2025-12-04 12:27:08 +01:00
parent 332688d693
commit b46e9e3882
14 changed files with 808 additions and 197 deletions

17
lib/curatorAuth.ts Normal file
View File

@@ -0,0 +1,17 @@
export function getCuratorAuthHeaders() {
if (typeof window === 'undefined') {
return {
'x-curator-auth': '',
'x-curator-username': '',
};
}
const authToken = localStorage.getItem('hoerdle_curator_auth');
const username = localStorage.getItem('hoerdle_curator_username') || '';
return {
'x-curator-auth': authToken || '',
'x-curator-username': username,
};
}