Bug: Mark react code that need to run on client side with 'use client'
Code that need to be rendered on client should be marked with 'use client'. See https://react.dev/reference/rsc/use-client#using-third-party-libraries for details.
This will ensure compatibility with frameworks like Nextjs, and react projects using server-side-rendering.
Does this mean that every related file needs that, or just AuthContext.tsx, since that's the application interface?
This is all a bit new to me. But should only be needed in AuthContext as the rest is included in that.
Stale issue message
Before slapping "use client" everywhere, we should look into this issue: https://github.com/vercel/next.js/issues/74585#issuecomment-2579578612
I still think adding "use client" to the context will be sufficient, as that is the entry point, but worth looking into.
Stale issue message
Stale issue message
Stale issue message