---
url: /docs/api/core/functions/createServiceAuthError.md
---
[**@kaiord/core**](../README.md)

***

[@kaiord/core](../README.md) / createServiceAuthError

# Function: createServiceAuthError()

> **createServiceAuthError**(`message`, `cause?`): [`ServiceAuthError`](../classes/ServiceAuthError.md)

Defined in: [packages/core/src/domain/types/service-errors.ts:18](https://github.com/pablo-albaladejo/kaiord/blob/3eacbe62ef72342d970523967cc5155b5935bb85/packages/core/src/domain/types/service-errors.ts#L18)

## Parameters

### message

`string`

### cause?

`unknown`

## Returns

[`ServiceAuthError`](../classes/ServiceAuthError.md)
