Next.js Discord

Discord Forum

SSR Supabase Causing PostHog to throw invalid JSON error

Unanswered
Stonechat posted this in #help-forum
Open in Discord
StonechatOP
So basiclly I just got into using Supabase with my NextJs and I started with this [documentation](https://supabase.com/docs/guides/auth/server-side/nextjs).
I also use PostHog, but when I try to login I get a weird looking response from the server (ATTACHED FILE) which PostHog doesn't like.



### My questions are:
- For what and how important is using SSR for authentication
- Which project on github has a good implementation of it.

I hope you can help me out.

0 Replies