diff --git a/.planning/todos/pending/2026-04-13-auth-prompt-sign-in-button-should-redirect-directly-to-logto.md b/.planning/todos/pending/2026-04-13-auth-prompt-sign-in-button-should-redirect-directly-to-logto.md new file mode 100644 index 0000000..d10d217 --- /dev/null +++ b/.planning/todos/pending/2026-04-13-auth-prompt-sign-in-button-should-redirect-directly-to-logto.md @@ -0,0 +1,15 @@ +--- +created: 2026-04-13T13:00:00.000Z +title: Auth prompt sign-in button should redirect directly to Logto +area: auth +files: + - src/client/components/AuthPromptModal.tsx +--- + +## Problem + +When an unauthenticated user clicks a protected action, the AuthPromptModal pops up. Clicking "Sign In" navigates to an intermediate /signin page, where they have to click again to be redirected to Logto. That's two extra clicks — the modal + the signin page — before reaching the actual login. + +## Solution + +Make the "Sign In" / "Sign Up" buttons in the AuthPromptModal redirect directly to the Logto OIDC login endpoint (e.g., `/api/auth/login` or wherever the OIDC redirect is triggered). Skip the intermediate page entirely — one click from modal to Logto.