soundcloud-api-ts-next
    Preparing search index...

    Interface SoundCloudContextValue

    Internal context value shape for the SoundCloud provider.

    interface SoundCloudContextValue {
        accessToken: string | null;
        apiPrefix: string;
        authLoading: boolean;
        isAuthenticated: boolean;
        login: () => void;
        logout: () => Promise<void>;
        user: SoundCloudUser | null;
    }
    Index

    Properties

    accessToken: string | null

    Current OAuth access token, or null.

    apiPrefix: string

    API route prefix used for all fetch calls (e.g. "/api/soundcloud").

    authLoading: boolean

    true while the user profile is being loaded after token set.

    isAuthenticated: boolean

    Whether the user is fully authenticated (has token + profile).

    login: () => void

    Initiate OAuth login — redirects to SoundCloud authorization page.

    logout: () => Promise<void>

    Log out and clear all auth state.

    user: SoundCloudUser | null

    The authenticated user's profile, or null.