From 8d2df74ba6e1b1413acd26f81a73de265f85e1cf Mon Sep 17 00:00:00 2001 From: "Samuel EF. Tinnerholm" Date: Sun, 24 May 2026 20:24:26 +0300 Subject: [PATCH] fix: limitless auth apiKey guard Fixes #222 --- core/src/exchanges/limitless/auth.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/exchanges/limitless/auth.ts b/core/src/exchanges/limitless/auth.ts index 3bee4805..9fc63ae1 100644 --- a/core/src/exchanges/limitless/auth.ts +++ b/core/src/exchanges/limitless/auth.ts @@ -57,7 +57,10 @@ export class LimitlessAuth { } getApiKey(): string { - return this.apiKey!; + if (!this.apiKey) { + throw new Error('[limitless] apiKey is required for authenticated requests'); + } + return this.apiKey; } /**