feat: implement user authentication and route protection using NextAuth middleware and server actions.

This commit is contained in:
Michael committed 2026-02-22 14:23:11 +01:00
1 parent a03fd64b5d
commit 44d7f95d4c
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ export async function loginAction(prevState: string | undefined, formData: FormD
await signIn("credentials", {
username: formData.get("username"),
password: formData.get("password"),
redirectTo: "/dashboard"
redirectTo: "/grid"
});
} catch (error) {
if (error instanceof AuthError) {