feat(web): wire auth pages with BetterAuth and route guards (#83)

Co-authored-by: Jason Woltje <[email protected]>
Co-committed-by: Jason Woltje <[email protected]>
This commit was merged in pull request #83.
This commit is contained in:
2026-03-13 13:21:33 +00:00
committed by jason.woltje
parent 780f85e0d6
commit 600da70960
8 changed files with 183 additions and 19 deletions
+7 -4
View File
@@ -1,11 +1,14 @@
import type { ReactNode } from 'react';
import { GuestGuard } from '@/components/guest-guard';
export default function AuthLayout({ children }: { children: ReactNode }): React.ReactElement {
return (
<div className="flex min-h-screen items-center justify-center bg-surface-bg">
<div className="w-full max-w-md rounded-xl border border-surface-border bg-surface-card p-8 shadow-lg">
{children}
<GuestGuard>
<div className="flex min-h-screen items-center justify-center bg-surface-bg">
<div className="w-full max-w-md rounded-xl border border-surface-border bg-surface-card p-8 shadow-lg">
{children}
</div>
</div>
</div>
</GuestGuard>
);
}