
(for @Kenny) hello, so I created this login function:
export async function logIn(email: string, password: string) {
const account = new Account(client);
try {
const session = await account.createEmailPasswordSession(email, password);
console.log("Login successful:", session);
(await cookies()).set(COOKIE_KEY, session.secret, {
path: "/",
httpOnly: true,
sameSite: "strict",
secure: true,
});
return session;
} catch (error) {
console.error("Login failed:", error);
throw error;
}
}
problem is, session is created successfully, but the cookie is not being created (ss of application tab of devtools sent)

huh???

Windows 95 ðŸ˜

nevermind, I know whyy. secret isnt given on client side session creation.

now I am going try what happens if I uninstalled appwrite
and used node-appwrite

still same result.

it created an empty cookie

@Kenny how do I get the session key ðŸ˜
Recommended threads
- Confused whether to use GDrive or Appwri...
I am making a blogging site. right now I'm using GDrive to host the blog post's banner + inline images. my thinking was that since GDrive has 15GB storage I sho...
- getting error while creating membership
i am getting some errors what is the correct way to write this? i am using react and appwrite
- Filter a DateTime attribute
Is it possible to filter a DateTime attribute by only the month and day (e.g., -02-15)?
