What's the recommended way of fetching or passing Supabase Auth state to Next client components now?

Auth helpers (which had a nice client-side hook for fetching data) is now deprecated, and the new package ssr only helps you with server-side auth fetching. What if I have a lot of client components, and want to keep my auth state up to date in a client component?
Should I...
  • Use auth helpers (even though it's deprecated and unmaintained).
  • Manually create a context provider and pass it server-side auth data, then use that provider in client components
  • Something else?
I'm a bit frustrated that there is no official guidance or support for this.
Was this page helpful?