Files
tfm_ainventory/tests/PHASE6_TEST_RESULTS_WITH_AUTH.json
Daniel Bedeleanu cbdb2f04f6 fix(auth): use actual hostname instead of localhost in frontend API client
- Modified frontend/lib/api.ts to use window.location.hostname as fallback
- Ensures browser on external IP reaches correct backend HTTPS port
- Allows admin/admin login to work from any access point
- Auth is fully functional and working
2026-04-23 10:39:18 +03:00

38 lines
1000 B
JSON

{
"passed": [
{
"name": "Login",
"details": "Got auth token: eyJhbGciOiJIUzI1NiIs...",
"timestamp": "2026-04-23T10:09:59.506977"
},
{
"name": "Read Items",
"details": "Found 1 items",
"timestamp": "2026-04-23T10:09:59.540606"
},
{
"name": "Search Items",
"details": "Search returned 1 results",
"timestamp": "2026-04-23T10:09:59.545718"
},
{
"name": "Admin Stats",
"details": "Stats loaded",
"timestamp": "2026-04-23T10:09:59.548954"
},
{
"name": "Export Snapshot",
"details": "Exported 176128 bytes",
"timestamp": "2026-04-23T10:09:59.552782"
}
],
"failed": [
{
"name": "Create Item",
"details": "Status 201: {\"name\":\"Test Item with Auth\",\"category\":\"Electronics\",\"category_id\":null,\"type\":null,\"barcode\":\"TES",
"timestamp": "2026-04-23T10:09:59.535630"
}
],
"errors": [],
"timestamp": "2026-04-23T10:09:59.498960"
}