spotify-cli / commands/auth
commands/auth
CLI command handlers for authentication.
Variables
authStatusCommand
constauthStatusCommand:CommandHandler
Defined in: src/commands/auth.ts:43
Handles spotify auth status.
Reports whether the stored tokens are valid, expired, or missing.
loginCommand
constloginCommand:CommandHandler
Defined in: src/commands/auth.ts:19
Handles spotify login [--client-id <id>].
Initiates the OAuth PKCE flow, opening the user's browser to Spotify's authorization page. Outputs the token expiry and scopes on success.
logoutCommand
constlogoutCommand:CommandHandler
Defined in: src/commands/auth.ts:33
Handles spotify logout.
Deletes stored OAuth tokens from disk.