> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CrossmintAuthenticationError

Defined in: packages/common/auth/dist/types/errors.d.ts:1

## Extends

* `Error`

## Constructors

### new CrossmintAuthenticationError()

> **new CrossmintAuthenticationError**(`message`?, `options`?): `CrossmintAuthenticationError`

Defined in: packages/common/auth/dist/types/errors.d.ts:4

#### Parameters

| Parameter | Type |
| - | - |
| `message`? | `string` |
| `options`? | \{ `status`: `number`; } |
| `options.status`? | `number` |

#### Returns

`CrossmintAuthenticationError`

#### Overrides

`Error.constructor`

## Properties

| Property | Modifier | Type | Description | Inherited from | Defined in |
| - | - | - | - | - | - |
|  `message` | `public` | `string` | - | `Error.message` | node\_modules/.pnpm/typescript\@6.0.3/node\_modules/typescript/lib/lib.es5.d.ts:1075 |
|  `name` | `public` | `string` | - | `Error.name` | node\_modules/.pnpm/typescript\@6.0.3/node\_modules/typescript/lib/lib.es5.d.ts:1074 |
|  `stack?` | `public` | `string` | - | `Error.stack` | node\_modules/.pnpm/typescript\@6.0.3/node\_modules/typescript/lib/lib.es5.d.ts:1076 |
|  `status?` | `readonly` | `number` | HTTP status of the Crossmint API response that caused the error, when there was one. | - | packages/common/auth/dist/types/errors.d.ts:3 |
|  `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`\[]) => `any` | Optional override for formatting stack traces **See** [https://v8.dev/docs/stack-trace-api#customizing-stack-traces](https://v8.dev/docs/stack-trace-api#customizing-stack-traces) | `Error.prepareStackTrace` | node\_modules/.pnpm/@types+node\@20.14.8/node\_modules/@types/node/globals.d.ts:28 |
|  `stackTraceLimit` | `static` | `number` | - | `Error.stackTraceLimit` | node\_modules/.pnpm/@types+node\@20.14.8/node\_modules/@types/node/globals.d.ts:30 |

## Methods

### captureStackTrace()

> `static` **captureStackTrace**(`targetObject`, `constructorOpt`?): `void`

Defined in: node\_modules/.pnpm/@types+node\@20.14.8/node\_modules/@types/node/globals.d.ts:21

Create .stack property on a target object

#### Parameters

| Parameter | Type |
| - | - |
| `targetObject` | `object` |
| `constructorOpt`? | `Function` |

#### Returns

`void`

#### Inherited from

`Error.captureStackTrace`
