kinetex - v1.0.0-rc.1
    Preparing search index...

    Function parseDigestChallenge

    • Parse a WWW-Authenticate: Digest response header into a structured DigestChallenge.

      Parameters

      • header: string

        Raw WWW-Authenticate header value (e.g. from a 401 response).

      Returns DigestChallenge

      Parsed challenge parameters.

      If realm or nonce are missing.

      const challenge = parseDigestChallenge(
      'Digest realm="testrealm@host.com", nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093"',
      );
      console.log(challenge.realm); // "testrealm@host.com"