Skip to content

Latest commit

 

History

History
49 lines (28 loc) · 1.23 KB

WWWAuthenticateChallengeError.md

File metadata and controls

49 lines (28 loc) · 1.23 KB

Class: WWWAuthenticateChallengeError

💗 Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.


Thrown when a server responds with WWW-Authenticate challenges, typically because of expired tokens, or bad client authentication

Example

HTTP/1.1 401 Unauthorized
WWW-Authenticate: Bearer error="invalid_token",
                         error_description="The access token expired"

Properties

cause

cause: WWWAuthenticateChallenge[]

The parsed WWW-Authenticate HTTP Header challenges


code

code: "OAUTH_WWW_AUTHENTICATE_CHALLENGE"


response

response: Response

The Response that included a WWW-Authenticate HTTP Header challenges, its Response.bodyUsed is true


status

status: number

HTTP Status Code of the response