---
url: "https://vueda.dev/v3/reference/api/js/utils/errors/AuthScopeInvalidatedError/methods/constructor.md"
title: "constructor"
---

# constructor

## Overview

Creates an instance of AuthScopeInvalidatedError.

## Signature

`constructor(messagePrefix, key)`

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-messagePrefix">messagePrefix</span> | `string` | yes | Identifies the action that abandoned the request. |
| <span id="param-key">key</span> | `string` | no | The cache key the abandoned response would have been written to. |

### Returns

[AuthScopeInvalidatedError](/v3/reference/api/js/utils/errors/members/AuthScopeInvalidatedError.md)

## Source

`client/lib/utils/errors.js:363`
