Skip to main content

OAuthGrantTypeNotAllowedError

@quik/oauth-server


@quik/oauth-server / OAuthGrantTypeNotAllowedError

Class: OAuthGrantTypeNotAllowedError

Defined in: oauth-server/src/errors/OAuthGrantTypeNotAllowedError.ts:10

Error thrown when an OAuth grant is not permitted for the client.

Extends​

Constructors​

Constructor​

new OAuthGrantTypeNotAllowedError(grantType): OAuthGrantTypeNotAllowedError

Defined in: oauth-server/src/errors/OAuthGrantTypeNotAllowedError.ts:11

Parameters​

grantType​

"authorization_code" | "refresh_token" | "client_credentials"

Returns​

OAuthGrantTypeNotAllowedError

Overrides​

QOAuthServerError.constructor

Properties​

code​

code: number

Defined in: core/src/errors/QError.ts:8

The code of the error.

Inherited from​

QOAuthServerError.code


parameters​

parameters: Record<string, any> = {}

Defined in: core/src/errors/QError.ts:12

The additional features sent to the exception.

Inherited from​

QOAuthServerError.parameters

Accessors​

translated​

Get Signature​

get translated(): string

Defined in: core/src/errors/QTranslatableError.ts:12

Returns​

string

Inherited from​

QOAuthServerError.translated

Methods​

toObject()​

toObject(): object

Defined in: core/src/errors/QError.ts:45

Returns​

object

code​

code: number

message​

message: string

parameters​

parameters: Record<string, any>

stack​

stack: string

translated​

translated: string

Inherited from​

QOAuthServerError.toObject


withContext()​

withContext(context): this

Defined in: core/src/errors/QError.ts:26

Attach context metadata to the error parameters.

Parameters​

context​

Record<string, unknown>

Context data to attach.

Returns​

this

Inherited from​

QOAuthServerError.withContext