docs: capture todo - Auth prompt sign-in should redirect directly to Logto

This commit is contained in:
2026-04-13 15:53:07 +02:00
parent ebf031a62c
commit 92b84d2cd6

View File

@@ -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.