banking icon indicating copy to clipboard operation
banking copied to clipboard

Not able to signup.

Open MeerUzairWasHere opened this issue 9 months ago • 3 comments

MeerUzairWasHere avatar May 02 '24 13:05 MeerUzairWasHere

Yes Sign Up not working...

Thatsgaurav avatar May 02 '24 18:05 Thatsgaurav

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

dcnl1980 avatar May 08 '24 18:05 dcnl1980

Hi @dcnl1980 I tried it but it is still not working and showing me "no session"

unnati06 avatar Jul 14 '24 20:07 unnati06