AniLink - v3.1.0
    Preparing search index...

    Function resolveMalCredentials

    • Splits MAL authentication and OAuth fields from the shared transport settings.

      The X-MAL-CLIENT-ID header is attached only when no access token is configured: that is MAL's documented use for the header (client-ID-only access to public endpoints). When a bearer token is present, Authorization: Bearer is the authentication and the extra header would only widen client-ID exposure to intermediaries that log request headers.

      Unknown keys are rejected with a TypeError at client construction so a mistyped credential field fails immediately instead of being silently ignored.

      Parameters

      Returns ResolvedProviderCredentials

      Provider authentication and transport settings, or empty values when omitted.

      A TypeError when the slot carries an unknown credential key.