
How I can reuse session from SSR because in client side I can not access to cookie. Can someone guide me for best practice, Thank you! I use server action to login and create session cookie const session = await login(email, password)
if (session) {
cookies().set(SESSION_COOKIE, session.secret, {
path: '/',
httpOnly: true,
sameSite: 'lax',
secure: true,
})
and I want to use createJWT on client side to pass to my backend and use it for backend API calls
Recommended threads
- API Access Screenshot
For the sites api you have a screenshot light and screenshot dark which represent v1/storage/buckets/screenshots/files/687273897c6df66a9241/view I can access t...
- Documents deleted in bulk API don't trig...
I have a function that is triggered when a document is deleted databases.x.collections.x.documents.*.delete. When I delete documents using the deleteDocuments ...
- Issue that has been there for months
I have done a PR in appwrite/console the issue was old and it was published on Apr 2024. The bug was still there and I just saw that and cleared the issue. Can...
