InvalidClientError

Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method). See Section 5.2 of RFC 6749.

const InvalidClientError = require('oauth2-server/lib/errors/invalid-client-error');

new InvalidClientError(message, properties)

Instantiates an InvalidClientError.

Arguments:

Name Type Description
[message=undefined] String|Error See new OAuthError(message, properties).
[properties={}] Object See new OAuthError(message, properties).
[properties.code=400] Object See new OAuthError(message, properties).
[properties.name=’invalid_client’] String The error name used in responses generated from this error.

Return value:

A new instance of InvalidClientError.

Remarks:

const err = new InvalidClientError();
// err.message === 'Bad Request'
// err.code === 400
// err.name === 'invalid_client'

message

See OAuthError#message.


code

Typically 400. See OAuthError#code.


inner

See OAuthError#inner.


name

Typically 'invalid_client'. See OAuthError#name.