(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
- Introducing new string column types made...
Adding new string types is hugely bennificial! Unfortunately it made the current column types not editable to change their types to the new longer field types.
- there is critical problem in this part
when user update the integer and double both get error not update or upload
- how can i make a relationship between a ...
i want to relate the $id from users auth table in appwrite with other column in my table user_profile. because is the same user... how can i have exactly the s...