From bb3b5604a1f165b01f997ef4f8c38c91782d51cc Mon Sep 17 00:00:00 2001 From: Michilis Date: Tue, 1 Jul 2025 19:18:29 +0000 Subject: [PATCH] Fix API calls to use npub instead of identifier - Updated getUserInfo to send npub field instead of identifier - Updated whitelistUser to send npub field instead of identifier - Resolves 422 Unprocessable Content error from backend API --- src/services/api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/api.ts b/src/services/api.ts index 8b9b163..649ecf5 100644 --- a/src/services/api.ts +++ b/src/services/api.ts @@ -11,7 +11,7 @@ export const apiService = { 'Content-Type': 'application/json', }, body: JSON.stringify({ - identifier: pubkey, + npub: pubkey, }), }); @@ -48,7 +48,7 @@ export const apiService = { 'X-Api-Key': apiKey, }, body: JSON.stringify({ - identifier: pubkey, + npub: pubkey, }), });