package de.oaa.libredeck.web.service.applemusic;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;
import org.springframework.web.context.annotation.SessionScope;

@Getter
@Setter
@Component
@SessionScope(proxyMode = ScopedProxyMode.TARGET_CLASS)
public class AppleMusicTokenStore {

    private String musicUserToken;

    public boolean hasToken() {
        return musicUserToken != null && !musicUserToken.isBlank();
    }
}
