slow-yellowS
Refine3y ago
12 replies
slow-yellow

How can I use `authProvider.getIdentity()` inside `getServerSideProps` with Next.sj.

Hello! I am using Supabase for auth and Next.js for routing. Is there any way to get the user auth data inside the Next.sj getServerSideProps function? I want to check some claims in my user/jwt in the SS props function but the function returns null. Im assuming it has to do with authProvider mostly working client side? Thanks in advance.
Was this page helpful?