# Scoped RPC refusals and mobile consent

Expired sessions prompt reauthentication and mobile consent displays the saved state.

RPC calls with a captured identity return `UNAUTHORIZED` when the Session expires and `SCOPE_MISMATCH` when the active identity changes. See [the session authority decision](/docs/adr/0015-server-reads-the-session-from-the-cookie-cache).

The mobile consent switch shows the saved value while the request runs. It becomes available again after the consent read settles. See [roles and permissions](/docs/features/roles-and-permissions).
