Best way to get an organizations slug during SSR (Nuxt)
Plugins relatedNuxt
Hey everyone, I’m running into an SSR issue with Better Auth + Nuxt. I’m trying to access the active organization and its slug during SSR, but I keep getting a hydration mismatch, because the slug isn’t available on server render.
What is the correct way to fetch the active organization (and importantly its slug) during SSR using Better Auth? Is there a proper pattern for resolving it on the server to avoid hydration mismatch? Should I rely on an API route instead of the client SDK during SSR?
Any guidance would be greatly appreciated - especially if there’s a recommended SSR pattern for Better Auth.