diff --git a/frontend/src/models/Robot.model.ts b/frontend/src/models/Robot.model.ts index f571d1a8..9a55270b 100644 --- a/frontend/src/models/Robot.model.ts +++ b/frontend/src/models/Robot.model.ts @@ -35,11 +35,9 @@ class Robot { const tokenSHA256 = this.tokenSHA256 ?? ''; const encPrivKey = this.encPrivKey ?? ''; const pubKey = this.pubKey ?? ''; - const nostrPubKey = this.nostrPubKey ?? ''; return { tokenSHA256, - nostrPubKey, keys: { pubKey: pubKey.split('\n').join('\\'), encPrivKey: encPrivKey.split('\n').join('\\'), diff --git a/frontend/src/models/Slot.model.ts b/frontend/src/models/Slot.model.ts index fdf001f2..4ab07790 100644 --- a/frontend/src/models/Slot.model.ts +++ b/frontend/src/models/Slot.model.ts @@ -7,7 +7,6 @@ import { getPublicKey } from 'nostr-tools'; export interface AuthHeaders { tokenSHA256: string; - nostrPubKey: string; keys: { pubKey: string; encPrivKey: string; diff --git a/frontend/src/services/api/ApiNativeClient/index.ts b/frontend/src/services/api/ApiNativeClient/index.ts index 5b98a432..3cbbb369 100644 --- a/frontend/src/services/api/ApiNativeClient/index.ts +++ b/frontend/src/services/api/ApiNativeClient/index.ts @@ -17,7 +17,6 @@ class ApiNativeClient implements ApiClient { ...headers, ...{ Authorization: `Token ${auth.tokenSHA256}`, - Nostr: auth.nostrPubKey, }, }; } else if (auth?.keys != null) { @@ -25,7 +24,6 @@ class ApiNativeClient implements ApiClient { ...headers, ...{ Authorization: `Token ${auth.tokenSHA256} | Public ${auth.keys.pubKey} | Private ${auth.keys.encPrivKey}`, - Nostr: auth.nostrPubKey, }, }; } diff --git a/frontend/src/services/api/ApiWebClient/index.ts b/frontend/src/services/api/ApiWebClient/index.ts index a14826fb..b28edf27 100644 --- a/frontend/src/services/api/ApiWebClient/index.ts +++ b/frontend/src/services/api/ApiWebClient/index.ts @@ -13,7 +13,6 @@ class ApiWebClient implements ApiClient { ...headers, ...{ Authorization: `Token ${auth.tokenSHA256}`, - Nostr: auth.nostrPubKey, }, }; } else if (auth?.keys != null) { @@ -21,7 +20,6 @@ class ApiWebClient implements ApiClient { ...headers, ...{ Authorization: `Token ${auth.tokenSHA256} | Public ${auth.keys.pubKey} | Private ${auth.keys.encPrivKey}`, - Nostr: auth.nostrPubKey, }, }; } diff --git a/frontend/src/services/api/index.ts b/frontend/src/services/api/index.ts index 1b8fcfb8..21b8effd 100644 --- a/frontend/src/services/api/index.ts +++ b/frontend/src/services/api/index.ts @@ -3,7 +3,6 @@ import ApiNativeClient from './ApiNativeClient'; export interface Auth { tokenSHA256: string; - nostrPubKey: string; keys?: { pubKey: string; encPrivKey: string }; }