mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-15 11:18:42 +02:00
feat: implement user authentication and route protection using NextAuth middleware and server actions.
This commit is contained in:
1 parent
a03fd64b5d
commit
44d7f95d4c
2 files changed
+3
-3
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user