fix(oauth): keep a session the server narrowed when a call needs more
A PDS refusing a call for want of a scope ended the session, so the next request sent the user through authorization. That is the fix when the session predates a scope the app has since added. It is not when the server chose to grant less than it was asked for — a group's host narrows a sign-in as the group to what the person's roles allow — because a new sign-in gets the same grant. Grain signed a group out on the first page that asked which groups it was in, and "Only members can see this pool" was what was left. Sessions now remember the scope asked of the PDS and the scope it granted (new columns, migrated in place; sign-in, obtainSession and refresh all record them). A refusal on a session granted fewer scopes than it asked for keeps the session and fails only that call, as a 403 named ScopeWithheld — not ScopeMissingError, which the browser client and the admin page answer by signing in again. Fewer, not different: a PDS reports its grant in its own words, so a full grant rarely matches the request string for string, but it keeps one scope per scope asked for. Sessions from before this keep the old behaviour. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>