Open Avibhatnagar10 opened 2 months ago
me too i am getting the problem also
me too same problem
Just put the secure to false
when running it on your localhost. It will work, same with signUp.
export const signIn = async ({ email, password }: signInProps) => {
try {
const { account } = await createAdminClient();
const session = await account.createEmailPasswordSession(email, password);
cookies().set("appwrite-session", session.secret, {
path: "/",
httpOnly: true,
sameSite: "strict",
secure: false,
});
return parseStringify(session);
} catch (error) {
console.error('Error', error);
}
}
Can't sign up it may be because of server issues.