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

    Function SoundCloudProvider

    • Provide SoundCloud API context to your React tree.

      Wrap your app (or a subtree) with this provider to enable all SoundCloud hooks. Manages authentication state and provides the API prefix for route resolution.

      Parameters

      Returns Element

      A React context provider element.

      import { SoundCloudProvider } from "soundcloud-api-ts-next";

      export default function App({ children }: { children: React.ReactNode }) {
      return (
      <SoundCloudProvider apiPrefix="/api/soundcloud">
      {children}
      </SoundCloudProvider>
      );
      }
      • useSCAuth for authentication actions
      • useTrack and other hooks that depend on this provider