Check if a track is marked favourite (REST / WebSocket)

Hi, is there a REST or WebSocket command to check if the track that is currently playing is a favourite?
I would like to make a button for adding to favourites that lights up if it is and does not light up if it is not

Last time i checked there was no methods for this, thought i believe at least qobuz and tidal navigation objects does have “favourite” field within the JSON responses.

What i did was to cache all the favourites at app startup, then compare versus that listing, which also updates itself always when something is added to favourites.

Imo this should be done at backend which might already have it all cached, so hopefully a method is added at some point, my JavaScript knowledge is not good enought to add such stuff.

Guess I’ll have to do that then. Thanks!