fix: use direct Authentik invalidation flow for logout

The /outpost.goauthentik.io/sign_out path returns 404 on the
Authentik server - it is not a real endpoint. Changed logout
to redirect directly to auth.echo6.co/if/flow/default-invalidation-flow
with a next= param to return to navi.echo6.co after logout.
This commit is contained in:
Matt 2026-04-27 03:55:48 +00:00
commit 821b6e03b1

View file

@ -62,7 +62,7 @@ export default function Panel({ onManeuverClick }) {
// Auth handlers // Auth handlers
const handleLogin = () => { window.location.href = '/outpost.goauthentik.io/start?rd=%2F' } const handleLogin = () => { window.location.href = '/outpost.goauthentik.io/start?rd=%2F' }
const handleLogout = () => { window.location.href = '/outpost.goauthentik.io/sign_out' } const handleLogout = () => { window.location.href = 'https://auth.echo6.co/if/flow/default-invalidation-flow/?next=https://navi.echo6.co/' }
// Optimize stops // Optimize stops
const hasGpsOrigin = gpsOrigin && geoPermission === 'granted' const hasGpsOrigin = gpsOrigin && geoPermission === 'granted'