banking
banking copied to clipboard
Not able to signup.
Yes Sign Up not working...
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);
}
}
Hi @dcnl1980 I tried it but it is still not working and showing me "no session"