When an instance has more connected OAuth clients than their current
plan and options allows them to, we redirect them to a paywall from
any web app except the Settings app (because it allows disconnecting
clients).
However, if the user is not logged in, the paywall will return an
unauthorized error.
Therefore, we'll make sure the redirection to the paywall only occurs
when the user is logged in (we don't duplicate the logic to redirect
them to the login page in the paywall middleware).
When an instance has more connected OAuth clients than their current plan and options allows them to, we redirect them to a paywall from any web app except the Settings app (because it allows disconnecting clients).
However, if the user is not logged in, the paywall will return an unauthorized error.
Therefore, we'll make sure the redirection to the paywall only occurs when the user is logged in (we don't duplicate the logic to redirect them to the login page in the paywall middleware).