Files
zeekay 87ea3879bc Send a signed-in reader from the front page to the workspace
Links from other products open tabs.hanzo.ai. A reader who already holds a
session came for the workspace, so the front page forwards them to /app/ and
draws nothing for them; a stranger still sees the exported page.
2026-10-12 09:11:26 -07:00

18 lines
466 B
TypeScript

'use client';
import { useEffect } from 'react';
import { session } from '@/lib/iam';
/**
* A reader who already holds a session has no use for the front page: they came
* from a link to Tabs, and Tabs is the workspace. Sends them there, and draws
* nothing — a stranger sees the page exactly as it was exported.
*/
export function Resume() {
useEffect(() => {
if (session().authenticated) window.location.replace('/app/');
}, []);
return null;
}