Subscriptions and session count remaining

My site allows members to purchase a ‘block’ of sessions, i.e. 50 sessions, and then make bookings with those sessions.

I would like to show the number of sessions remaining when the user logs in, however my code is not working and I cannot seem to find a current equivalent of the old wixPaymentsBackend.getUserActiveSubscription code.

In fact, I’m a bit hard pressed to find any documentation relating to activeSubscription and the sessionCount for remaining subscription sessions in the documentation… Has anyone come across this obstacle as well?