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
| Property | Type | Required | Description |
|---|---|---|---|
code | NAuthErrorCode | Yes | Standardized error code |
message | string | Yes | Human-readable error message |
details | Record<string, unknown> | No | Additional error details |
timestamp | string | No | Error timestamp (ISO 8601) |
statusCode | number | No | HTTP 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
- NAuthClientError - Implements
NAuthErrorinterface
Related Types
NAuthErrorCode- Error code enumNAuthClientError- Error class implementation