Signal/signal-ui
sososttil 65d0e13008 fix(auth): stop redirecting sign-in to the dead Vercel origin
signal-ui/src/main.jsx hardcoded WEBAPP_URL to https://signal-ui-xi.vercel.app
and passed it to signInUrl/signUpUrl/afterSignInUrl/afterSignUpUrl. The
production Clerk instance (clerk.sttilsolutions.com) rejects that origin with
400 origin_invalid on every write path, so sign-in was handed back to an origin
that cannot authenticate. Verified live: POST /v1/client/sign_ins returns 400
from the Vercel origin and 200/422 from signal.sttilsolutions.com.

Redirect target now derives from window.location.origin, overridable via
VITE_APP_URL, so it cannot drift from the deployed domain again. Also replaced
afterSignInUrl/afterSignUpUrl with signInFallbackRedirectUrl/
signUpFallbackRedirectUrl, deprecated in Clerk Core 2.

Build verified: pnpm build succeeds, dead Vercel URL absent from dist output.
NOT verified: a real sign-in completing end to end. Needs deploy first.

Also updates the pilot readiness table: hosted-URL row now names
signal.sttilsolutions.com (confirmed canonical by Kisa 2026-07-27), login row
moved from PASS to OPEN. Honest count 11/13 clean, 1 open, 1 disputed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Aqzsyo1PudjabuV9XQzxwp
2026-07-27 19:41:49 -04:00
..
demo chore: add .vercel to gitignore; clarify export button label 2026-05-19 12:50:25 -04:00
public feat(signal-ui): migrate agent-readiness files to Vercel, add graphify to gitignore 2026-06-16 15:19:18 -04:00
src fix(auth): stop redirecting sign-in to the dead Vercel origin 2026-07-27 19:41:49 -04:00
tokens feat: add reason strings per patient, fix export headers, add signal-ui source 2026-05-26 09:45:02 -04:00
.gitignore add Phase 1 security hardening, mapping confidence, audit logging, pilot docs 2026-05-29 05:41:25 -04:00
eslint.config.js feat: add reason strings per patient, fix export headers, add signal-ui source 2026-05-26 09:45:02 -04:00
index.html feat: add reason strings per patient, fix export headers, add signal-ui source 2026-05-26 09:45:02 -04:00
package.json Add Phase 3: Clerk auth with org-scoped data isolation 2026-05-29 12:12:17 -04:00
pnpm-lock.yaml Add Phase 3: Clerk auth with org-scoped data isolation 2026-05-29 12:12:17 -04:00
pnpm-workspace.yaml update CLAUDE.md and coverage calculator; add n8n content radar workflow, vercel SPA rewrite, and ui workspace config 2026-06-02 00:41:49 -04:00
vercel.json update CLAUDE.md and coverage calculator; add n8n content radar workflow, vercel SPA rewrite, and ui workspace config 2026-06-02 00:41:49 -04:00
vite.config.js feat: add reason strings per patient, fix export headers, add signal-ui source 2026-05-26 09:45:02 -04:00