From fc1c8aca26afbc71aae8d0b17d2cece35b208ceb Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Thu, 9 Jul 2026 13:50:28 +0700 Subject: [PATCH] Add visible debug toast showing pubkey returned by Amber after login Co-authored-by: shakespeare.diy --- src/components/auth/LoginDialog.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/auth/LoginDialog.tsx b/src/components/auth/LoginDialog.tsx index 8a3f21d..0561e30 100644 --- a/src/components/auth/LoginDialog.tsx +++ b/src/components/auth/LoginDialog.tsx @@ -60,6 +60,12 @@ export const LoginDialog: React.FC = ({ isOpen, onClose, onLog try { // This opens Amber natively, user approves, pubkey comes back as a Promise const pubkey = await getAmberPublicKeyViaPlugin(); + // DEBUG: show pubkey on screen so we can verify it's correct + toast({ + title: '🔑 DEBUG: Amber returned', + description: `hex: ${pubkey.slice(0, 16)}... (${pubkey.length} chars)`, + duration: 10000, + }); completeAmberLogin(pubkey); } catch (e: unknown) { const msg = (e as Error)?.message ?? 'Amber login failed';