sonda/web/src/App.tsx
tgiachi 1c5b4a4fa0 feat(web): API client, session with cross-tab refresh, login screen
- fetch client with bearer token, one retry after a renewal, ApiError with the server code
- session kept in localStorage; renewal is single-flight in a tab and under a Web Lock across tabs, and a tab adopts a session another tab already renewed
- a refused refresh token signs out once; an unreachable server keeps the session
- mediaUrl and onTokenChange for audio and image URLs that carry the token
- sign-in and first-account screen, and a gate that shows the app only when signed in
2026-11-12 11:21:06 +01:00

9 lines
141 B
TypeScript

import AuthGate from './auth/AuthGate'
export default function App() {
return (
<AuthGate>
<h1>Sonda</h1>
</AuthGate>
)
}