refactor(auth): sweep orphaned hero_auth references (#36) #37
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_os!37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "36-auth-orphan-sweep"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
First pass on #36 — removes references left behind after hero_auth was ripped out (
2c98634,6354b25).Changes
config.toml— drop"auth"fromprofiles.defaultandprofiles.minimalisland lists.COMPILED_ISLANDSingenerated_profile.rsregenerates accordingly.crates/hero_os_web/src/components/island_frame.rs— remove"auth" => "/hero_auth/ui/"mapping (dead route, island no longer exists).crates/hero_os_app/src/services/env_service.rs— remove unreachable Bearer-token injection inhttp_get.config::auth_url()is gone andsave_jwtwas never called, sohero_auth_tokenis never written to localStorage.crates/hero_os_app/src/storage.rs— delete unusedsave_jwt,load_jwt, andclear_desktop_state. Keepclear_jwt— still called from the logout handler atmain.rs:1434to scrub stale tokens left over from earlier hero_auth builds.crates/hero_os_client/— delete empty stub directory (was untracked, only contained a leftovertarget/).Not in this PR
Remaining #36 items intentionally deferred:
LoginScreen/SetupWizard(966 LOC combined) — need product decision on whether to gate behind a feature flag or delete outright. In guest mode,on_authis never invoked, but the logout handler still falls back to renderingLoginScreen, so the UI path is reachable.#![allow(dead_code)]atmain.rs:6— removing it surfaces 20+ warnings; separate PR.generated_profile.rsdeveloper-path noise (first line embeds absolute path from whichever dev last built it) — needsbuild.rsfix to strip the path; separate PR.Verification
cargo check --workspacepasses (exit 0, only pre-existing warnings).Test plan
hero_os_session_tokenandhero_os_jwtkeys gone after logout)"auth"registered or rendered🤖 Generated with Claude Code