Mode2Test AuthAndToken component complete: login/logout working, token persistence, background refresh active, tested and verified

This commit is contained in:
2026-01-17 15:31:44 +00:00
parent 319289cfac
commit eed8552282
13 changed files with 626 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Mode1Test
Mode2Test
+9 -1
View File
@@ -80,9 +80,17 @@ async function startMode(mode: string): Promise<boolean> {
console.log(`[ModeSwitch] Starting ${mode} (${folderName}/) on port ${SHARED_PORT}...`);
// Determine server path based on mode
// Mode2Test uses AuthAndToken/backend/server.ts
// Mode1Test uses backend/server.ts
let serverPath = 'backend/server.ts';
if (mode === 'Mode2Test') {
serverPath = 'AuthAndToken/backend/server.ts';
}
// Start the mode's backend server
currentProcess = Bun.spawn({
cmd: ['bun', 'run', 'backend/server.ts'],
cmd: ['bun', 'run', serverPath],
cwd: modePath,
stdout: 'pipe',
stderr: 'pipe',