Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Redirect to clients paywall only if logged in (#4386)
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).
- Loading branch information