Is there a way to run const session = await auth.getSession('current'); on nuxt.js plugin initializer and get the session object on nuxt server side?
I run it and on the browser it works but on the nuxt server it gives me an (401) Unauthorized error
@VincentGe can you look into this?
We don't support SSR right now, there are some hacky workarounds, but we're working on better SSR suppor.t
At the moment, I would just recommend not using SSR
😅
It's a know product limitation
[ANSWERED] Access session on nuxt server side
Maybe appwrite-ssr npm package could help
[CLOSED] Access session on nuxt server side
Recommended threads
- 1:1 relationship doesn’t sync after re-a...
Hi, I’m trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...
- Failed to create function
Hey everyone 👋 I'm having an issue creating Functions on Appwrite Cloud and I'm not sure if it's a platform bug or something wrong in my project. When I try t...
- Upsert with setting permissions
Hi there, I am using self-hosted appwrite v1.7.4 and trying to use the bulk update stuff that was released with 1.7.x. Unfortunally I found that there is an ser...