selimaj-devandclaude 3bb1c2f0c8 Skip re-signing when a session token already exists
A content script reports 'wallet-connected' on every page load (it
always tries a silent onlyIfTrusted connect first), and the handler
was unconditionally running the full nonce/sign/verify cycle every
time. signMessage() shows a fresh Phantom approval popup on every
call, unlike connect() which is silent once trusted -- so this meant
a new signature prompt on every single axiom.trade page load, caught
during manual testing ("signing appears every time").

Now the handler checks for an existing valid session token first and
only re-authenticates when there isn't one.

Confirmed end-to-end against real Phantom on Zen: connect -> sign ->
verify -> session token stored, via the wallet-auth debug logs.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YXiHuScXrjxBh7yFGAPq3B
2026-09-07 13:08:18 +02:00
2026-09-06 11:44:59 +02:00
2026-09-06 04:27:03 +02:00
2026-09-06 04:27:03 +02:00

copilot

Your blockchain powered Agent to help with your trading emotions

S
Description
The blockchain-powered trading companion that helps you manage the emotional/behavioral side of trading
Readme Apache-2.0
185 KiB
2026-09-09 10:20:36 +00:00
Languages
TypeScript 91.1%
CSS 8.6%
HTML 0.3%