Skip to content
← Public packages

@kody/spotify

Read a Spotify profile, search the catalog, and manage library, playlists, devices, and playback.

FollowFork

Files

accounts.ts

28 lines · 886 B · TypeScript
export {
	DEFAULT_SPOTIFY_INTEGRATION,
	SPOTIFY_FULL_CONNECT_URL,
	SPOTIFY_READ_CONNECT_URL,
	connectOauthUrl,
	accounts,
	listSpotifyAccounts,
	resolveSpotifyIntegration,
	type SpotifyAccountInfo,
	type SpotifyIntegrationInput,
} from '../lib/accounts.ts'
import { accounts } from '../lib/accounts.ts'

/**
 * List the default Spotify integration and naming rules for extra accounts.
 * Prefer this export when choosing which saved Spotify OAuth lane to call.
 * There are no hard-coded personal aliases — extra identities use `spotify-*`.
 *
 * @returns Default integration name plus naming guidance for additional accounts.
 *
 * @example
 * import listAccounts from 'kody:@kody/spotify/accounts'
 * const lanes = listAccounts()
 * // => { defaultIntegration: 'spotify', naming: 'spotify or spotify-*', ... }
 */
export default function accountsEntrypoint() {
	return accounts()
}