(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
- general_route_not_found - Auth Guide
If youβve just added a subdomain to your project, verified your DNS records, and confirmed your SSL certificate is working, but you're still hitting a `general_...
- Can't resume paused project
I have logged in in incognito, done the email verification and still get the invalid fingerprint error. What's the issue.
- Download appwrite Docs
Is there is a way to download appwrite Docs ? Because appwrite skill isn't enough to give the agent full understanding about how appwrite works (I noticed this ...