Skip to content

basalt / auth/src / AccountEmailAmbiguousError

Class: AccountEmailAmbiguousError ​

Defined in: auth/src/auth.ts:179

A user store holds more than one account whose email differs only in letter case (rows written before emails were canonicalised), so an email lookup cannot tell which account is meant. Stores throw it instead of guessing: resolve the duplicates (e.g. normalizeAuthUserEmails() of @basaltkit/auth-prisma / @basaltkit/auth-sqlite reports them), then the lookup works again. Not exposed to the client.

Extends ​

Constructors ​

Constructor ​

> new AccountEmailAmbiguousError(email): AccountEmailAmbiguousError

Defined in: auth/src/auth.ts:182

Parameters ​

email ​

string

Returns ​

AccountEmailAmbiguousError

Overrides ​

BasaltError.constructor

Properties ​

code ​

> readonly code: string

Defined in: core/src/errors.ts:25

Inherited from ​

BasaltError.code


details? ​

> readonly optional details?: Record<string, unknown>

Defined in: core/src/errors.ts:28

Structured payload passed to the constructor, exactly as given (never sanitised here).

Inherited from ​

BasaltError.details


expose ​

> readonly expose: false = false

Defined in: auth/src/auth.ts:181


status ​

> readonly status: 500 = 500

Defined in: auth/src/auth.ts:180

Released under the MIT License.