Interface: OAuthErrorOptions
Defined in: src/core/errors/oauthError.ts:3
Properties
body?
optional body?: unknown;Defined in: src/core/errors/oauthError.ts:8
The auth server's response body, parsed when it was JSON.
cause?
optional cause?: unknown;Defined in: src/core/errors/oauthError.ts:4
error?
optional error?: string;Defined in: src/core/errors/oauthError.ts:10
The OAuth 2.0 error code, e.g. invalid_grant.
errorDescription?
optional errorDescription?: string;Defined in: src/core/errors/oauthError.ts:12
The auth server's human-readable explanation.
reauthorizationRequired?
optional reauthorizationRequired?: boolean;Defined in: src/core/errors/oauthError.ts:20
Whether the grant is unrecoverable and the user has to authorize again.
Set explicitly where the code alone cannot say. Atlassian answers access_denied both when the user declines the consent screen — re-authorizing is exactly right — and when the client secret is wrong, where re-authorizing would loop the user forever over what is really a deployment mistake.
status?
optional status?: number;Defined in: src/core/errors/oauthError.ts:6
HTTP status, when the failure came from Atlassian's auth endpoints rather than from your configuration.