<SessionProvider> and useSession() for some parts to work. I made those work by upgrading next-auth to v5. But that created another problem.singIn() and signOut() were part of the next-auth/react package; but now they're returned and exported from calling NextAuth().auth.ts which I used some boilerplate from create-t3-turbo to upgrade, I have some server code. Things like googleapis, db and env. Apparently just because these are imported in the file, using signIn() exposes them to the client bundle and I get errors such as Module not found: Can't resolve 'fs', or on the client: Error: :x: Attempted to access a server-side environment variable on the client.