Skip to main content

Interface: OAuthResponse

Defined in: oauthServerTypes.ts:23

A normalized outbound HTTP response. Either a JSON body with status, or a redirect (302) — never both. Adapters apply this to their own response.

Properties

body?

optional body?: unknown

Defined in: oauthServerTypes.ts:27

JSON-serializable response body.


redirect?

optional redirect?: string

Defined in: oauthServerTypes.ts:29

When set, the adapter should issue a 302 redirect to this URL.


status

status: number

Defined in: oauthServerTypes.ts:25

HTTP status code. Defaults to 200 when redirect is unset.