OAuth2Error | @auth0/nextjs-auth0 - v4.4.1
Description: Documentation for @auth0/nextjs-auth0

# Class OAuth2Error

Errors that come from Auth0 in the `redirect_uri` callback may contain reflected user input via the OpenID Connect `error` and `error_description` query parameter. You should not render the error `message`, or `error` and `error_description` properties without properly escaping them first.

#### Hierarchy (View Summary)

- SdkError
  - OAuth2Error

- Defined in src/errors/index.ts:9

#####
Index

### Constructors

constructor

### Properties

code

##
Constructors

### constructor

- new OAuth2Error(
  __namedParameters: { code: string; message?: string },
  ): OAuth2Error

  #### Parameters

  - __namedParameters: { code: string; message?: string }

  #### Returns OAuth2Error

  Overrides SdkError.constructor

  - Defined in src/errors/index.ts:12

##
Properties

### code

code: string

Overrides SdkError.code

- Defined in src/errors/index.ts:10