Skip to content

OidcError

Defined in: packages/core/src/errors.ts:24

Structured error thrown by all oidc-js-core functions instead of generic Error.

Consumers can switch on OidcError.code for programmatic error handling.

  • Error

new OidcError(code, message): OidcError

Defined in: packages/core/src/errors.ts:25

OidcErrorCode

Typed error code identifying the failure category.

string

OidcError

Error.constructor

readonly code: OidcErrorCode

Defined in: packages/core/src/errors.ts:27

Typed error code identifying the failure category.


message: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Error.message


name: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Error.name


optional stack?: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Error.stack