NextAuth tRPC Websocket example
Create a .env file:
NEXTAUTH_URL='http://localhost:3000'
NEXTAUTH_SECRET='<your-secret>'
GOOGLE_CLIENT_ID='<your-client-id>'
GOOGLE_CLIENT_SECRET='<your-client-secret>'
Run the development server:
npm i
npm run dev
Run the WebSocket server:
npm run dev:wss
Open http://localhost:3000.