mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-10 01:30:37 -04:00
c5fa5d6fe7
## Bug PR #4367 (login/logout UX overhaul) accidentally removed the early `return Ok(())` after saving a token via `spacetime login --token`. This caused the command to fall through into the web login flow (`spacetimedb_login_and_save`), which fails when no browser or server is available. ## Impact All tests that use `spacetime login --token` are broken: - 4 replication tests (`test_enable_disable_replication`, `test_enable_replication_on_suspended_database`, `test_enable_replication_fails_if_not_suspended`, `test_prefer_leader`) - 5 teams tests (`test_permissions_clear_org`, `test_permissions_delete_org`, `test_org_permissions_mut_sql_org_members`, `test_org_permissions_private_tables`, `test_permissions_publish_org_members`) ## Fix One line: restore `return Ok(())` after the `--token` branch. --------- Signed-off-by: Zeke Foppa <196249+bfops@users.noreply.github.com> Co-authored-by: clockwork-labs-bot <clockwork-labs-bot@users.noreply.github.com> Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com> Co-authored-by: Zeke Foppa <196249+bfops@users.noreply.github.com>