- Use admin@example.com and 'password' to sign in.
+ Use your updated credentials to sign in.
diff --git a/src/lib/actions/auth.ts b/src/lib/actions/auth.ts
index 527f238..97381e0 100644
--- a/src/lib/actions/auth.ts
+++ b/src/lib/actions/auth.ts
@@ -2,6 +2,40 @@
'use server';
import { redirect } from 'next/navigation';
+import { z } from 'zod';
+import db from '@/lib/db';
+
+const loginSchema = z.object({
+ email: z.string().email(),
+ password: z.string(),
+});
+
+export async function login(data: z.infer