deno.land / x / oauth4webapi@v1.2.2 / docs / functions / parseWwwAuthenticateChallenges.md

parseWwwAuthenticateChallenges.md

Function: parseWwwAuthenticateChallenges

💗 Help the project

â–¸ parseWwwAuthenticateChallenges(response): WWWAuthenticateChallenge[] | undefined

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

Parameters

Name Type
response Response

Returns

WWWAuthenticateChallenge[] | undefined

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

oauth4webapi

Version Info

Tagged at
2 years ago