- 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
9 lines
141 B
TypeScript
9 lines
141 B
TypeScript
import AuthGate from './auth/AuthGate'
|
|
|
|
export default function App() {
|
|
return (
|
|
<AuthGate>
|
|
<h1>Sonda</h1>
|
|
</AuthGate>
|
|
)
|
|
}
|