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
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...