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

# OnboardingSessionExpiredError

<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/wallets/src/signers/types.ts:75](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/signers/types.ts#L75)

Thrown when the signer frame was reloaded between starting and completing onboarding, so the
in-memory onboarding state (and the OTP issued for it) is gone. A fresh OTP has already been
requested when this is thrown; the caller should prompt the user to enter the new code.

## Extends

* `Error`

## Constructors

### new OnboardingSessionExpiredError()

> **new OnboardingSessionExpiredError**(`message`): `OnboardingSessionExpiredError`

Defined in: [packages/wallets/src/signers/types.ts:76](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/signers/types.ts#L76)

#### Parameters

| Parameter | Type     | Default value                                                                               |
| --------- | -------- | ------------------------------------------------------------------------------------------- |
| `message` | `string` | `"The signer session expired before the code could be verified. A new code has been sent."` |

#### Returns

`OnboardingSessionExpiredError`

#### Overrides

`Error.constructor`

## Properties

| Property                                          | Modifier | Type                                                    | Description                                                                                                                                                                        | Inherited from            | Defined in                                                                           |
| ------------------------------------------------- | -------- | ------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------- | ------------------------------------------------------------------------------------ |
| <a id="message" /> `message`                      | `public` | `string`                                                | -                                                                                                                                                                                  | `Error.message`           | node\_modules/.pnpm/typescript\@5.5.3/node\_modules/typescript/lib/lib.es5.d.ts:1077 |
| <a id="name" /> `name`                            | `public` | `string`                                                | -                                                                                                                                                                                  | `Error.name`              | node\_modules/.pnpm/typescript\@5.5.3/node\_modules/typescript/lib/lib.es5.d.ts:1076 |
| <a id="stack" /> `stack?`                         | `public` | `string`                                                | -                                                                                                                                                                                  | `Error.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) | `Error.prepareStackTrace` | node\_modules/.pnpm/@types+node\@20.14.8/node\_modules/@types/node/globals.d.ts:28   |
| <a id="stacktracelimit" /> `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`
