---
title: RELKIT_AUTH_DUPLICATE
description: "Better Auth is set up more than once."
pagination: false
search:
  keywords: [RELKIT_AUTH_DUPLICATE]
sidebar:
  icon: triangle-alert
---

{/* Generated by apps/docs/scripts/generate.ts. Do not edit. */}

**Better Auth is set up more than once.**

## What happened

The app registers more than one Better Auth service, or the Better Auth service is mounted on no route or on several routes.

## What to do

Keep one `defineBetterAuthService` and mount it on exactly one `ALL` catch-all route, then run `relkit check`.

Reported by `@relkit/cli`, `relkit/diagnostics`.

See [all error codes](/docs/errors).
