Props for the AuthenticationCard component

interface AuthenticationCardProps {
    isAuthenticated: boolean;
    needsReauthentication: boolean;
    onLogin: () => Promise<void>;
    onLogout: () => Promise<void>;
}

Properties

isAuthenticated: boolean

Whether the user is currently authenticated with Spotify

needsReauthentication: boolean

Whether the user needs to reconnect after logout

onLogin: () => Promise<void>

Handler function for initiating Spotify OAuth flow

onLogout: () => Promise<void>

Handler function for terminating the Spotify session