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
- Selfhosted Github App installation
I've followed this guide: https://appwrite.io/docs/advanced/self-hosting/configuration/version-control to connect GitHub to my self-hosted Appwrite instance (1....
- Project Paused Despite Daily Active Usag...
I noticed that my project was automatically **paused**, even though it is actively being used. The project is an **attendance application** that is used daily b...
- Sudden CORS Errors - Domain hasn't Chang...
I have an Appwrite project with two web apps configured, the first one has the hostname `*` and the second one I just added to test if it could fix the issue wi...