> ## 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.

# JWTInvalidError

<Note>
  **This page has been updated for Wallets SDK V1.** If you are using the previous version,
  see the [previous version docs](/wallets/v0/overview) or the [V1 migration guide](/wallets/guides/migrate-to-v1).
</Note>

Defined in: packages/common/base/dist/error/index.d.ts:17

## Extends

* [`NotAuthorizedError`](./NotAuthorizedError)

## Constructors

### new JWTInvalidError()

> **new JWTInvalidError**(`details`?): `JWTInvalidError`

Defined in: packages/common/base/dist/error/index.d.ts:19

#### Parameters

| Parameter  | Type     |
| ---------- | -------- |
| `details`? | `string` |

#### Returns

`JWTInvalidError`

#### Overrides

[`NotAuthorizedError`](./NotAuthorizedError).[`constructor`](./NotAuthorizedError#constructor)

## Properties

| Property                                          | Modifier   | Type                                                    | Description                                                                                                                                                                        | Overrides                                                                        | Inherited from                                                                                             | Defined in                                                                           |
| ------------------------------------------------- | ---------- | ------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| <a id="code" /> `code`                            | `readonly` | `string`                                                | -                                                                                                                                                                                  | [`NotAuthorizedError`](./NotAuthorizedError).[`code`](./NotAuthorizedError#code) | -                                                                                                          | packages/common/base/dist/error/index.d.ts:18                                        |
| <a id="details" /> `details?`                     | `readonly` | `string`                                                | -                                                                                                                                                                                  | -                                                                                | [`NotAuthorizedError`](./NotAuthorizedError).[`details`](./NotAuthorizedError#details)                     | packages/common/base/dist/error/index.d.ts:5                                         |
| <a id="message" /> `message`                      | `public`   | `string`                                                | -                                                                                                                                                                                  | -                                                                                | [`NotAuthorizedError`](./NotAuthorizedError).[`message`](./NotAuthorizedError#message)                     | node\_modules/.pnpm/typescript\@5.5.3/node\_modules/typescript/lib/lib.es5.d.ts:1077 |
| <a id="name" /> `name`                            | `public`   | `string`                                                | -                                                                                                                                                                                  | -                                                                                | [`NotAuthorizedError`](./NotAuthorizedError).[`name`](./NotAuthorizedError#name)                           | node\_modules/.pnpm/typescript\@5.5.3/node\_modules/typescript/lib/lib.es5.d.ts:1076 |
| <a id="stack" /> `stack?`                         | `public`   | `string`                                                | -                                                                                                                                                                                  | -                                                                                | [`NotAuthorizedError`](./NotAuthorizedError).[`stack`](./NotAuthorizedError#stack)                         | node\_modules/.pnpm/typescript\@5.5.3/node\_modules/typescript/lib/lib.es5.d.ts:1078 |
| <a id="preparestacktrace" /> `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) | -                                                                                | [`NotAuthorizedError`](./NotAuthorizedError).[`prepareStackTrace`](./NotAuthorizedError#preparestacktrace) | node\_modules/.pnpm/@types+node\@20.14.8/node\_modules/@types/node/globals.d.ts:28   |
| <a id="stacktracelimit" /> `stackTraceLimit`      | `static`   | `number`                                                | -                                                                                                                                                                                  | -                                                                                | [`NotAuthorizedError`](./NotAuthorizedError).[`stackTraceLimit`](./NotAuthorizedError#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

[`NotAuthorizedError`](./NotAuthorizedError).[`captureStackTrace`](./NotAuthorizedError#capturestacktrace)
