Skip to Content
Anuma SDKClientInternalFunctionspostOauthConsent

postOauthConsent

postOauthConsent<ThrowOnError>(options?: Options<PostOauthConsentData, ThrowOnError>): RequestResult<PostOauthConsentResponses, PostOauthConsentErrors, ThrowOnError>

Defined in: src/client/sdk.gen.ts:1861 

Process OAuth consent

Handles the consent form submission. Approve creates a grant and returns the auth code as JSON when the caller sends Accept: application/json, or as a 302 redirect to redirect_uri otherwise. Deny mirrors the same content negotiation: JSON error body or redirect with error=access_denied.

Type Parameters

Type ParameterDefault type

ThrowOnError extends boolean

false

Parameters

ParameterType

options?

Options<PostOauthConsentData, ThrowOnError>

Returns

RequestResult<PostOauthConsentResponses, PostOauthConsentErrors, ThrowOnError>

Last updated on