
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
- mcp-for-docs not working properly
I'm experiencing issues integrating the MCP server tool with Cursor IDE. The MCP server connection establishes successfully initially but fails after one minute...
- Creating a relationship with nested obje...
{ "data": { "name": "DiDi", "type": "Software Development", "userJobs": [{ "$id": "68cbf1e2003612fb13ca", "j...
- Realtime integration with SSR auth
Hey, I have a nextjs website with SSR auth, works great. I use a session client for user verification and an admin client with API key. Both is used with node-...
