mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 12:34:38 +00:00
fix(metablog-ui): site.html uses canonical sbx_token key (ref #103)
Match the rest of the SecuBox Hub codebase (index.html, login.html, shared/api-utils.js, every other module) which reads localStorage under 'sbx_token'. The plan's heredoc had 'jwt' which would have caused an infinite login redirect on every drill-in page load. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6b11bcda9a
commit
9d9eb2304a
|
|
@ -131,7 +131,7 @@
|
|||
const API = '/api/v1/metablogizer';
|
||||
|
||||
function headers() {
|
||||
const t = localStorage.getItem('jwt');
|
||||
const t = localStorage.getItem('sbx_token');
|
||||
return t ? { 'Authorization': `Bearer ${t}` } : {};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user