Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oauth4webapi/mod.ts>parseWwwAuthenticateChallenges

OAuth 2 / OpenID Connect for JavaScript Runtimes
Go to Latest
function parseWwwAuthenticateChallenges
import { parseWwwAuthenticateChallenges } from "https://deno.land/x/oauth4webapi@v2.7.0/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.