spotify_cli/domain/
auth.rs

1/// Authentication status returned by `spotify-cli auth status`.
2#[derive(Debug, Clone, Copy)]
3pub struct AuthStatus {
4    pub logged_in: bool,
5    pub expires_at: Option<u64>,
6}
7
8/// Scope inspection payload for `spotify-cli auth scopes`.
9#[derive(Debug, Clone)]
10pub struct AuthScopes {
11    /// Full set of scopes requested by the CLI.
12    pub required: Vec<String>,
13    /// Scopes granted by Spotify for the current token.
14    pub granted: Option<Vec<String>>,
15    /// Required scopes missing from the granted set.
16    pub missing: Vec<String>,
17}