This drives me crazy. There are solutions to this. Why hasn't anyone contacted this guy? I can use the Qobuz tokens his program generates, but the Tidal ones don't work; however, he may be able provide guidance on that.
https://github.com/nathom/streamrip