If you are having problems with "Edit" / "Follow" functionality throwing "Not Signed In" error, It is because you have a newer version of Next & NextAuth, a small modification is needed (you can find it in the github repostory). Here are the steps: 1. Your [...nextauth].ts file should export authOptions separately 2. Your serverAuth.ts file should use getServerSession(req, res, authOptions) instead of getSession({req}) 3. Modify serverAuth(req) to serverAuth(req, res) everytwhere in your code. 4. Logout, shutdown the app, login again, everything should work ❤ In this tutorial, we'll be building a Twitter clone with React, Tailwind CSS, Next.JS, Prisma and MongoDB. We'll also be deploying it to Vercel! This is a great video for anyone who wants to learn how to build a fullstack web application from scratch. We are going to learn funcionalities such as: - Authentication system - Notification system - Image Upload using Base64 strings - Prisma ORM with MongoDB - Responsive Layout - 1 To Many Relations (User - Post) - Many To Many Relations (Post - Comment) - Following functionality - Comments / Replies - Likes functionality - Vercel Deployment Timestamps. https://codewithavinash.com/premium 👨💻 Source Code & More: https://www.codewithavinash.com/projects/duolingo-clone 💬 Discord & Help: https://www.codewithavinash.com/discord #codewithavinash #codewithharry #code #vscode #vscodeextensions #codding #codeforcessolutions #codeforcessolution #codeforces #codeforbeginners #codeforindia #nodejs #css #c++ #beginners #html #javascript #java #djasia #microsoft #appdevelopment #softwareengineer #develpment #webdevelopment #website #codeninja #visualstudio
If you are having problems with "Edit" / "Follow" functionality throwing "Not Signed In" error, It is because you have a newer version of Next & NextAuth, a small modification is needed (you can find it in the github repostory). Here are the steps: 1. Your [...nextauth].ts file should export authOptions separately 2. Your serverAuth.ts file should use getServerSession(req, res, authOptions) instead of getSession({req}) 3. Modify serverAuth(req) to serverAuth(req, res) everytwhere in your code. 4. Logout, shutdown the app, login again, everything should work ❤ In this tutorial, we'll be building a Twitter clone with React, Tailwind CSS, Next.JS, Prisma and MongoDB. We'll also be deploying it to Vercel! This is a great video for anyone who wants to learn how to build a fullstack web application from scratch. We are going to learn funcionalities such as: - Authentication system - Notification system - Image Upload using Base64 strings - Prisma ORM with MongoDB - Responsive Layout - 1 To Many Relations (User - Post) - Many To Many Relations (Post - Comment) - Following functionality - Comments / Replies - Likes functionality - Vercel Deployment Timestamps. https://codewithavinash.com/premium 👨💻 Source Code & More: https://www.codewithavinash.com/projects/duolingo-clone 💬 Discord & Help: https://www.codewithavinash.com/discord #codewithavinash #codewithharry #code #vscode #vscodeextensions #codding #codeforcessolutions #codeforcessolution #codeforces #codeforbeginners #codeforindia #nodejs #css #c++ #beginners #html #javascript #java #djasia #microsoft #appdevelopment #softwareengineer #develpment #webdevelopment #website #codeninja #visualstudio