@supabase/ssr signout nextjs app-router

I'm having issues trying to use ssr signout exactly as it is written in the current nextjs supabase authbutton component.

AuthButton component.
https://github.com/vercel/next.js/blob/canary/examples/with-supabase/components/AuthButton.tsx

The errors I'm getting:
app-index.js:34 Warning: Cannot update a component (`HotReload`) while rendering a different component (`Router`).

react-dom.development.js:8585 Uncaught Error: Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.
GitHub
The React Framework. Contribute to vercel/next.js development by creating an account on GitHub.
Was this page helpful?