Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.57 KB

fetchProtectedResource.md

File metadata and controls

30 lines (20 loc) · 1.57 KB

Function: fetchProtectedResource()

💗 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.


fetchProtectedResource(config, accessToken, url, method, body?, headers?, options?): Promise<Response>

Performs an arbitrary Protected Resource resource.

Authorization Header is used to transmit the Access Token value. No other Access Token means of transport are supported.

Parameters

Parameter Type Description
config Configuration -
accessToken string OAuth 2.0 Access Token
url URL URL to send the request to
method string HTTP Request method to use for the request
body? FetchBody HTTP Request body to send in the request
headers? Headers HTTP Request headers to add to the request
options? DPoPOptions -

Returns

Promise<Response>