Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/oauth4webapi/mod.ts>protectedResourceRequest

OAuth 2 / OpenID Connect for JavaScript Runtimes
Latest
function protectedResourceRequest
import { protectedResourceRequest } from "https://deno.land/x/oauth4webapi@v2.11.1/mod.ts";

Performs a protected resource request at an arbitrary URL.

Authorization Header is used to transmit the Access Token value.

Parameters

accessToken: string

The Access Token for the request.

method: string

The HTTP method for the request.

url: URL

Target URL for the request.

optional
headers: Headers

Headers for the request.

optional
body:
| Blob
| ArrayBufferView
| ArrayBuffer
| string
| null

Request body compatible with the Fetch API and the request's method.