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

    Interface SCAuthManagerConfig

    Configuration for SCAuthManager.

    interface SCAuthManagerConfig {
        clientId: string;
        clientSecret: string;
        pkceStore?: PkceStore;
        redirectUri: string;
        stateCookieName?: string;
    }
    Index

    Properties

    clientId: string

    SoundCloud OAuth client ID from your app registration.

    clientSecret: string

    SoundCloud OAuth client secret from your app registration.

    pkceStore?: PkceStore

    Optional custom PKCE store. Defaults to the built-in in-memory store.

    Use CookiePkceStore for serverless/Vercel deployments, or supply a Redis-backed adapter for multi-region Node.js deployments.

    redirectUri: string

    OAuth redirect URI — must match the value registered in your SoundCloud app and used in the initial authorization request.

    stateCookieName?: string

    Name for the OAuth state cookie.

    Useful when you need to scope the cookie name per application or to avoid conflicts with other OAuth flows on the same domain.

    "sc_oauth_state"
    
    // In your route handler, read from request cookies:
    const state = req.cookies[scAuth.stateCookieName];