Let’s learn how to set/remove cookies both in the browser but also on the server in Next.js. This will allow us to create HttpOnly cookies, perfect for storing sensitive data such as authentication tokens.
---------- Course
Want to go deeper with Next.js? Join me in my Next Level Next.js course where over 29 videos and 8 hours of content we’ll build a full application from start to finish. We use TypeScript, GraphQL, Prisma, Apollo, Mapbox, Firebase and lots more. https://courses.leighhalliday.com/next-level-next-js
---------- Links
Source Code - https://github.com/leighhalliday/nextjs-cookies
Starting Code - https://github.com/leighhalliday/nextjs-cookies/tree/14bff7ecc64cae5f72d3f6b5ad8b2837ce6ebe1f
Same Site Cookies - https://web.dev/samesite-cookies-explained/
---------- Timeline
#nét #javascript #react #web-development