2024-11-26 03:09:48 +00:00
|
|
|
'use server'
|
|
|
|
|
import { redirect } from "next/navigation";
|
|
|
|
|
import { revalidatePath } from "next/cache";
|
|
|
|
|
export const loginUser = async (data: any) => {
|
|
|
|
|
try {
|
2024-12-24 16:33:16 +00:00
|
|
|
const response = undefined;
|
|
|
|
|
// await signIn("credentials", {
|
|
|
|
|
// email: data.email,
|
|
|
|
|
// password: data.password,
|
|
|
|
|
// redirect: false,
|
|
|
|
|
// });
|
2024-11-26 03:09:48 +00:00
|
|
|
return response;
|
|
|
|
|
} catch (error) {
|
|
|
|
|
throw new Error(error as string);
|
|
|
|
|
}
|
|
|
|
|
};
|