fix: login form and registerForm error KOs
This commit is contained in:
@@ -21,7 +21,7 @@ export async function POST(request: Request) {
|
||||
if (error instanceof AppError) {
|
||||
return NextResponse.json(
|
||||
{
|
||||
error: AppError,
|
||||
error,
|
||||
},
|
||||
{ status: 401 }
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user