[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/auth](../README) / OAuthStateMismatchError

# Class: OAuthStateMismatchError

Defined in: [auth/src/social/errors.ts:20](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/auth/src/social/errors.ts#L20)

Thrown when the OAuth callback `state` is missing or does not match the stored value.

## Extends

- [`SocialError`](SocialError)

## Constructors

### Constructor

> **new OAuthStateMismatchError**(): `OAuthStateMismatchError`

Defined in: [auth/src/social/errors.ts:21](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/auth/src/social/errors.ts#L21)

#### Returns

`OAuthStateMismatchError`

#### Overrides

[`SocialError`](SocialError).[`constructor`](SocialError#constructor)

## Properties

### code

> `readonly` **code**: `string`

Defined in: [core/src/errors/ZerotalError.ts:18](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/errors/ZerotalError.ts#L18)

#### Inherited from

[`SocialError`](SocialError).[`code`](SocialError#code)

***

### status

> `readonly` **status**: `number` = `500`

Defined in: [core/src/errors/ZerotalError.ts:19](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/errors/ZerotalError.ts#L19)

#### Inherited from

[`SocialError`](SocialError).[`status`](SocialError#status)

***

### context?

> `readonly` `optional` **context?**: `Record`\<`string`, `unknown`\>

Defined in: [core/src/errors/ZerotalError.ts:20](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/errors/ZerotalError.ts#L20)

#### Inherited from

[`SocialError`](SocialError).[`context`](SocialError#context)
