Skip to content

OAuthHttpClient

Defined in: packages/auth/src/oauth/http-client.ts:17

getJson(url, headers?): Promise<OAuthHttpResponse>

Defined in: packages/auth/src/oauth/http-client.ts:26

GET a JSON resource.

string

Record<string, string>

Promise<OAuthHttpResponse>


postForm(url, form, headers?): Promise<OAuthHttpResponse>

Defined in: packages/auth/src/oauth/http-client.ts:19

POST an application/x-www-form-urlencoded body and parse JSON back.

string

Record<string, string>

Record<string, string>

Promise<OAuthHttpResponse>