Skip to main content
Module

x/oauth4webapi/mod.ts>parseWwwAuthenticateChallenges

OAuth 2 / OpenID Connect for Web Platform API JavaScript runtimes
Go to Latest
function parseWwwAuthenticateChallenges
import { parseWwwAuthenticateChallenges } from "https://deno.land/x/oauth4webapi@v2.0.1/mod.ts";

Parses the WWW-Authenticate HTTP Header from a Response instance.

Returns

Array of WWWAuthenticateChallenge objects. Their order from the response is preserved. undefined when there wasn't a WWW-Authenticate HTTP Header returned.