This commit is contained in:
2025-12-27 21:03:20 +01:00
parent 29e2f254dd
commit c667deff8b
33 changed files with 701 additions and 100 deletions

View File

@ -0,0 +1,4 @@
import { auth } from "@/lib/auth";
import { toNextJsHandler } from "better-auth/next-js";
export const { POST, GET } = toNextJsHandler(auth);

23
src/app/login/page.tsx Normal file
View File

@ -0,0 +1,23 @@
import LoginForm from "@/components/auth/LoginForm";
import { Suspense } from "react";
export default function LoginPage() {
return (
<div className="flex min-h-screen items-center justify-center">
<div className="w-full max-w-sm space-y-6">
<div className="space-y-2 text-center">
<h1 className="text-2xl font-semibold tracking-tight">
Admin Sign In
</h1>
<p className="text-sm text-muted-foreground">
Sign in with your administrator account
</p>
</div>
<Suspense>
<LoginForm />
</Suspense>
</div>
</div>
);
}