# auth-error

> Another error from the authentication endpoints; `code` says which.

`4xx` · `Authentication error` · `type: https://docs.dlogify.com/errors/auth-error`

## When it happens

- An authentication endpoint (`/v1/auth/*`: sign-up, sign-in, password reset, email verification) refused the request for a reason without a more specific type.

## How to fix it

Read `code`, a stable machine-readable error code, and `detail`. Problems from the authentication endpoints carry `code` whenever one is available, whatever their `type`.

## Example

```http
HTTP/1.1 400 Bad Request
Content-Type: application/problem+json
```

```json
{
  "code": "INVALID_TOKEN",
  "type": "https://docs.dlogify.com/errors/auth-error",
  "title": "Authentication error",
  "status": 400,
  "detail": "Invalid token.",
  "instance": "req_01j…"
}
```

Source: https://docs.dlogify.com/errors/auth-error
