Persist the OAuth client ID alongside each stored session and reuse it when restoring or revoking that session.
Sessions written by older versions continue to use the legacy hosted client metadata URL, preserving refresh, authenticated requests, auth-agent operation, and logout without migration.