From ffa7fb926e130f106dd289b4e0867b2fb04f0564 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 10 Jun 2025 10:16:11 -0300 Subject: [PATCH] remove deprecated unused _onauth hook. --- abstract-relay.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/abstract-relay.ts b/abstract-relay.ts index fd979bf..454feee 100644 --- a/abstract-relay.ts +++ b/abstract-relay.ts @@ -26,9 +26,6 @@ export class AbstractRelay { public onclose: (() => void) | null = null public onnotice: (msg: string) => void = msg => console.debug(`NOTICE from ${this.url}: ${msg}`) - // this is exposed just to help in ndk migration, shouldn't be relied upon - public _onauth: ((challenge: string) => void) | null = null - public baseEoseTimeout: number = 4400 public connectionTimeout: number = 4400 public publishTimeout: number = 4400 @@ -233,7 +230,6 @@ export class AbstractRelay { return case 'AUTH': { this.challenge = data[1] as string - this._onauth?.(data[1] as string) return } }