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
- Can not get the logged in user data in N...
I'm trying to get the user data after i log in with otp but it get this error : AppwriteException: User (role: guests) missing scopes (["account"]) at Gen...
- Sites Runtimes 1.8.0 Self-Hosting. Flutt...
I have a problem with the Flutter version for SITES RUNTIMES. I use self-hosting and updated to version 1.8.0, which according to the changelog says they updat...
- getFilePreview , getFileView , getFileDo...
I am on Appwrite self hosted 1.8.0 I use the web sdk 21.3.0 I created a bucket and it has this permission (users:create) then i enabled the file security then ...