adrianhajdin / banking

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

Issues With Sign up #5

Open Avibhatnagar10 opened 2 months ago

Avibhatnagar10 commented 2 months ago

Can't sign up it may be because of server issues.

Ezejaemmanuel commented 2 months ago

me too i am getting the problem also

nizar787 commented 2 months ago

me too same problem

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