Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/oauth2_server/errors.ts>OAuth2Error

A standards compliant implementation of an OAuth 2.0 authorization server with PKCE support.
Latest
class OAuth2Error
extends HttpError
import { OAuth2Error } from "https://deno.land/x/oauth2_server@0.12.0/errors.ts";

Constructors

new
OAuth2Error(
status?: number,
message?: string,
)
new
OAuth2Error(status?: number, options?: OAuth2ErrorOptions)
new
OAuth2Error(message?: string, options?: OAuth2ErrorOptions)
new
OAuth2Error(options?: OAuth2ErrorOptions)
new
OAuth2Error(
statusOrMessageOrOptions?: number | string | OAuth2ErrorOptions,
messageOrOptions?: string | OAuth2ErrorOptions,
)

Properties

code: string

An ASCII error code.

optional
uri: string

A URI identifying a human readable web page with information about the error.