51431c7bc1
When a client user selects their account from the dev login selector, the portal previously had no way to establish an authenticated session — it only checked for a ?sessionId= URL param (used by the real staff impersonation flow). This caused the portal to always show "Hi, Guest". Changes: - POST /api/portal/dev-session: new endpoint (auth-disabled only) that creates an impersonation session for a given clientId, using a fixed dev staff ID to avoid conflicts with the one-active-session-per-staff rule in the real impersonation flow. Sessions are long-lived (24h). - CustomerPortal: on mount, after checking for ?sessionId=, also check for a dev client user in localStorage and call /api/portal/dev-session to obtain a session. This mirrors the real impersonation flow so all existing portal API calls (which require X-Impersonation-Session-Id) work without modification. cc @cpfarhood Co-Authored-By: Paperclip <noreply@paperclip.ing>