adrianhajdin / banking

Horizon is a modern banking platform for everyone.
https://banking-jet.vercel.app
MIT License
1.13k stars 323 forks source link

Not able to signup. #2

Open MeerUzairWasHere opened 2 months ago

Thatsgaurav commented 2 months ago

Yes Sign Up not working...

dcnl1980 commented 1 month ago

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);
    }
  }