# AuthGateway Scene ## UI - Account/session check spinner - Auth route chooser (Login/Register/OAuth) - Service status banner ## Client - Decide entry path: session refresh, login, register, OAuth. - Render enabled options based on server capabilities. ## Server - Validate refresh tokens and return session state. - Provide auth policy. ## Data Exchange ### Client -> Server (`SessionProbe`) - `requestId`, `refreshToken` (optional), `deviceId` ### Server -> Client (`SessionProbeResult`) - `requestId`, `isAuthenticated`, `accountId`, `displayName` - `authMethodsAvailable`, `passwordPolicy`