Skip to main content

NAuthError

Package: @nauth-toolkit/client Type: Interface

Interface for structured authentication errors returned by the SDK. Implemented by NAuthClientError.

import { NAuthError } from '@nauth-toolkit/client';

Properties

PropertyTypeRequiredDescription
codeNAuthErrorCodeYesStandardized error code
messagestringYesHuman-readable error message
detailsRecord<string, unknown>NoAdditional error details
timestampstringNoError timestamp (ISO 8601)
statusCodenumberNoHTTP status code (if applicable)

Example

{
"code": "AUTH_INVALID_CREDENTIALS",
"message": "Invalid email or password",
"timestamp": "2024-01-15T10:30:00.000Z",
"statusCode": 401
}

Used By