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

    Function createSCAuthManager

    • Create a new SCAuthManager instance.

      Call this once at the module level to create a singleton — the PKCE store is shared across requests within the same process (or across instances if you supply an external store).

      Parameters

      Returns SCAuthManager

      // lib/sc-auth.ts
      import { createSCAuthManager } from "soundcloud-api-ts-next/server";

      export const scAuth = createSCAuthManager({
      clientId: process.env.SC_CLIENT_ID!,
      clientSecret: process.env.SC_CLIENT_SECRET!,
      redirectUri: process.env.SC_REDIRECT_URI!,
      });