(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
- Appwrite github organization error
I have github student account. The auth has been paused however the database is working fine. I cant see any option to resume from my console panel. It is just ...
- Appwrite project paused
I have github student account. The auth has been paused however the database is working fine. I cant see any option to resume from my console panel. It is just ...
- Missing Invoice
Hi! I need help with billing on my account (marelu@gmail.com). I have never received a single invoice by email. My organization has been on the Pro plan since...