The doctrine of first sale doesn’t apply to digital goods because you never buy them, they’re always leased from the company. This is intentional as the doctrine of first sale is seen as a loophole by the industry. This is all covered in that 50+ page EULA they show you when you install an app or buy some product. The right of the company to turn off your access to everything you purchased without warning or recourse is always included in the EULA.
The only good thing is that companies can’t push too hard on those terms without endangering them. Take stuff away from rich people and they’ll get Congress involved. Prisons are a special case because you literally have a captive audience and rampant monopolistic deals.