add registration and session logic

This commit is contained in:
smanylov
2025-11-27 21:33:53 +07:00
parent 5c6a235ece
commit 39dee22b89
12 changed files with 191 additions and 45 deletions
+2 -2
View File
@@ -2,11 +2,11 @@
import styles from '@/app/styles/login.module.scss'
import { useActionState } from 'react';
import { authenticate } from '@/app/api/action';
import { authorization } from '@/app/actions/auth';
export default function LoginForm() {
const [errorMessage, formAction, isPending] = useActionState(
authenticate,
authorization,
undefined,
);