feat: Implement API V3 Testing Dashboard and Security Hardening
- Added comprehensive System Testing dashboard with live V3 trace tool. - Implemented Section 2D 'Fail-Fast' protocol in get_object helper. - Added reactive JWT synchronization in root layout to ensure V3 consistency. - Resolved Tailwind 4 @apply compilation errors in testing page.
This commit is contained in:
@@ -169,6 +169,13 @@ export const get_object = async function get_object({
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
// FAIL FAST (Section 2D): Do not retry on Auth/Permission failures
|
||||
if (response.status === 401 || response.status === 403) {
|
||||
console.error(`API Auth Failure (${response.status}). Failing fast as per Section 2D protocol.`);
|
||||
return false;
|
||||
}
|
||||
|
||||
console.log('The response was not ok. Throwing an error!');
|
||||
throw new Error(`HTTP error! status: ${response.status}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user