fix: use /login endpoint for auth initiation instead of /api/auth/whoami

The /api/auth/whoami endpoint returns JSON after auth, leaving
users on a raw JSON page. The new /login endpoint triggers
forward_auth and redirects to / after successful auth.
This commit is contained in:
Matt 2026-04-27 03:01:23 +00:00
commit 77340a9fbc
4 changed files with 4 additions and 4 deletions

View file

@ -758,7 +758,7 @@ export default function PlaceDetail() {
</button>
) : (
<button
onClick={() => { window.location.href = '/api/auth/whoami' }}
onClick={() => { window.location.href = '/login' }}
className="flex items-center gap-1 px-2 py-1.5 rounded-lg text-xs"
style={{ background: 'var(--accent-muted)', color: 'var(--accent)', border: '1px solid var(--border)' }}
title="Log in to save places"