---
title: Errors - React Auth Kit
description: React Auth Kit errors
---

# Errors

<div data-ea-publisher="authkitarkadipme" data-ea-type="text" id="ref_errors"></div>

## AuthError

### Import

```js
import { AuthError } from 'react-auth-kit/errors';
```

### constructor

`#!ts new AuthError(message)`

### Parameters

| Name | Type | Required | Description |
| :------ | :------ | :------ | :------ |
| `message` | `string` | :heavy_check_mark: | Error Message to be shown to the developer. |

#### Defined in

[packages/react-auth-kit/src/errors.ts:8](https://github.com/react-auth-kit/react-auth-kit/blob/37dc30d4/packages/react-auth-kit/src/errors.ts#L8)

---

<p align="center">&mdash; 🔑  &mdash;</p>
<p align="center"><i>React Auth Kit is <a href="https://github.com/react-auth-kit/react-auth-kit/blob/master/LICENSE">MIT License</a> code</i></p>
