---
title: Class: AuthError
slug: chord-ui/class-autherror
docTags: 
createdAt: 2023-11-06T15:03:31.904Z
---

[chord-stytch](docId\:YIIsnk5WTW5z7_cYyyPZE).AuthError

## Hierarchy

- `Error`

  ↳&#x20;

## Constructors

### constructor

• **new AuthError**(`__namedParameters`)

### Parameters

| Name                | Type     |
| ------------------- | -------- |
| `__namedParameters` | `Object` |

### Overrides

Error.constructor

### Defined in

[packages/chord-stytch/src/error.ts:10](https://github.com/chordcommerce/chord-ui/blob/2b105e1/packages/chord-stytch/src/error.ts#L10)

## Properties

### cause

• `Optional` **cause**: `unknown`

### Inherited from

Error.cause

### Defined in

node\_modules/typescript/lib/lib.es2022.error.d.ts:26

***

### code

• **code**: [`AuthErrorCodes`](docId\:AsAN4MkIJp4Hs9IaPSgJB)

### Defined in

[packages/chord-stytch/src/error.ts:9](https://github.com/chordcommerce/chord-ui/blob/2b105e1/packages/chord-stytch/src/error.ts#L9)

***

### message

• **message**: `string`

### Inherited from

Error.message

### Defined in

node\_modules/typescript/lib/lib.es5.d.ts:1054

***

### name

• **name**: `string`

### Overrides

Error.name

### Defined in

[packages/chord-stytch/src/error.ts:8](https://github.com/chordcommerce/chord-ui/blob/2b105e1/packages/chord-stytch/src/error.ts#L8)

***

### stack

• `Optional` **stack**: `string`

### Inherited from

Error.stack

### Defined in

node\_modules/typescript/lib/lib.es5.d.ts:1055

***

### prepareStackTrace

▪ `Static` `Optional` **prepareStackTrace**: (`err`: `Error`, `stackTraces`: `CallSite`\[]) => `any`

### Type declaration

▸ (`err`, `stackTraces`): `any`

Optional override for formatting stack traces



[https://v8.dev/docs/stack-trace-api#customizing-stack-traces](https://v8.dev/docs/stack-trace-api#customizing-stack-traces)

### Parameters

| Name          | Type          |
| ------------- | ------------- |
| `err`         | `Error`       |
| `stackTraces` | `CallSite`\[] |

### Returns

`any`

### Inherited from

Error.prepareStackTrace

### Defined in

node\_modules/@types/node/globals.d.ts:11

***

### stackTraceLimit

▪ `Static` **stackTraceLimit**: `number`

### Inherited from

Error.stackTraceLimit

### Defined in

node\_modules/@types/node/globals.d.ts:13

## Methods

### captureStackTrace

▸ `Static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`

Create .stack property on a target object

### Parameters

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

### Returns

`void`

### Inherited from

Error.captureStackTrace

### Defined in

node\_modules/@types/node/globals.d.ts:4
