Package-level declarations
Types
Bridges the platform entry point (e.g. Android's MainActivity.onNewIntent, which captures the AuthConfig.GOOGLE_REDIRECT_URI redirect the auth server sends after OAuth completes) into the Compose layer, which has no direct access to that entry point.
The skimbyte-server routes about the current user (as opposed to AuthApi, which talks to the auth server at ApiConfig.AUTH_BASE_URL).
The app runs two independent Ktor HttpClients against SessionStorage — the general one in networkModule and the dedicated one in authModule — each with its own Auth plugin, so each only single-flights refreshes against itself. The server's refresh token is single-use, so without cross-client coordination, concurrent 401s on both clients can each present the same stored refresh token; the second submission gets flagged as replay and the whole session is revoked. This mutex serializes refresh attempts across every client sharing it (wire the same Koin-provided instance into both), and a caller that loses the race is handed whatever the winner already stored instead of replaying a token that's already been consumed.
Functions
Whether this failure means the request never reached the server, as opposed to the server responding with an error status.