panva / openid-client

OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
MIT License
1.83k stars 392 forks source link

Client requestResource method did not contain PATCH method #368

Closed ffilipus closed 3 years ago

ffilipus commented 3 years ago

Hello, I'm using openid-client version 4.7.3 with typescript and API I'm connecting needs http PATCH method. It's missing in index.d.ts.

 requestResource(
    resourceUrl: string | URL,
    accessToken: TokenSet | string,
    options?: {
      headers?: object;
      body?: string | Buffer;
      method?: "GET" | "POST" | "PUT" | "HEAD" | "DELETE" | "OPTIONS" | "TRACE";
      tokenType?: string;
      DPoP?: DPoPInput;
    }
  ): CancelableRequest<Response<Buffer>>;

Is it intentional? Thanks

panva commented 3 years ago

not intended, feel free to submit a PR.