in public/js/account.js [32:42]
async loadSubscriptionStatus() {
const res = await fetch("/api/user-spotify-entitlements");
if (res.status !== 200) {
this.model.isLinked = false;
this.model.syncSubscriptions();
} else {
const data = await res.json();
this.model.isLinked = true;
this.model.setSubscriptions(data.entitlements);
}
}