feat: add Resend integration for email verification and update package dependencies

- Integrated Resend for sending email verification upon user sign-up.
- Updated package.json to include Resend as a dependency.
- Enhanced authentication flow with error handling for email sending.
- Removed outdated Canvas Implementation Guide documentation.
This commit is contained in:
Matthias
2026-03-25 14:56:20 +01:00
parent 4d17936570
commit 056e60743d
9 changed files with 369 additions and 801 deletions

View File

@@ -1,10 +1,12 @@
"use client";
import { authClient } from "@/lib/auth-client";
import { useRouter } from "next/navigation";
import Link from "next/link";
export default function Home() {
const { data: session, isPending } = authClient.useSession();
const router = useRouter();
if (isPending) {
return (
@@ -29,6 +31,12 @@ export default function Home() {
>
Zum Dashboard
</Link>
<button
onClick={() => authClient.signOut().then(() => router.refresh())}
className="rounded-lg border border-border px-6 py-3 text-sm hover:bg-accent"
>
Abmelden
</button>
</div>
) : (
<div className="flex gap-4">