Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship). π Add auth to your Next.js app FAST: https://bit.ly/3QOe1Bh (paid sponsorship) π NEW React & Next.js Course: https://bytegrad.com/courses/professional-react-nextjs π NEW React & Next.js Course: https://bytegrad.com/courses/professional-react-nextjs π Professional JavaScript Course: https://bytegrad.com/courses/professional-javascript π Professional CSS Course: https://bytegrad.com/courses/professional-css π Web development roadmap 2024 & 2025: https://email.bytegrad.com π Email newsletter (BIG update soon): https://email.bytegrad.com π Discord: all my courses have a private Discord where I actively participate π Kinde: check out Kinde for auth and more https://kinde.com β±οΈ Timestamps: 00:00 Next.js + server architecture 01:26 Downside of serverless functions 04:19 Benefits of separate server 05:52 Authentication architecture 07:30 Folder structure 08:05 Next.js authentication 12:21 Express API authentication 15:21 Request from Next.js server to Express API 18:05 Request from Next.js client to Express API 19:41 Audience claim #webdevelopment #programming #coding #reactjs #nextjs Note that my videos may contain mistakes. Always verify yourself that your code is safe and does what you want it to do for your specific situation. You agree by watching the videos that you are solely responsible for any mistakes in your code. This channel and all its content is owned & operated by ByteGrad Sp. z o.o. with Tax ID: PL6762676561 . . TOP resource to LEARN AI for Developers - https://datacamp.pxf.io/RGyxrR (paid sponsorship & ByteGrad Sp. z o.o. gets commission)