diff --git a/furumi-node-player/client/src/App.css b/furumi-node-player/client/src/App.css index ca9687d..8523c77 100644 --- a/furumi-node-player/client/src/App.css +++ b/furumi-node-player/client/src/App.css @@ -100,24 +100,3 @@ margin-bottom: 1rem; } -.auth-card .settings { - margin-top: 1.5rem; - padding-top: 1rem; - border-top: 1px solid #1f2c45; -} - -.auth-card .toggle { - display: flex; - align-items: center; - justify-content: center; - gap: 8px; - color: #64748b; - font-size: 0.8rem; - cursor: pointer; -} - -.auth-card .toggle input { - width: 14px; - height: 14px; - accent-color: #7c6af7; -} diff --git a/furumi-node-player/client/src/App.tsx b/furumi-node-player/client/src/App.tsx index 16e0d5b..82ac92a 100644 --- a/furumi-node-player/client/src/App.tsx +++ b/furumi-node-player/client/src/App.tsx @@ -9,28 +9,12 @@ type UserProfile = { email?: string } -const NO_AUTH_STORAGE_KEY = 'furumiNodePlayer.runWithoutAuth' - function App() { const [loading, setLoading] = useState(true) const [user, setUser] = useState(null) const [error, setError] = useState(null) - const [runWithoutAuth, setRunWithoutAuth] = useState(() => { - try { - return window.localStorage.getItem(NO_AUTH_STORAGE_KEY) === '1' - } catch { - return false - } - }) useEffect(() => { - if (runWithoutAuth) { - setError(null) - setUser({ sub: 'noauth', name: 'No Auth' }) - setLoading(false) - return - } - const loadMe = async () => { try { const response = await fetch('/auth/me', { credentials: 'include' }) @@ -69,10 +53,10 @@ function App() { } void loadMe() - }, [runWithoutAuth]) + }, []) // Authenticated — render player immediately - if (!loading && (user || runWithoutAuth)) { + if (!loading && user) { return } @@ -101,28 +85,6 @@ function App() { Sign in with SSO - -
- -
)