Skip to main content

Week Slides

Official slides corresponding to Week 14. They cover sessions and protected routes in Next.js (what a session is, the token and the cookie, integration into the architecture, 'use server', the login and the layers of defense) and error handling (expected and unexpected errors, the journey of an error in the login, error.tsx and the notFound, redirect, unauthorized and forbidden helpers). The slides are in Spanish.

The slides and the guides

The week's guides were split into Sessions, Protected routes and Error handling. The slides were prepared before that split and do not include permissions (requirePermission, hasPermission) or the splitting of the page into server and client: those topics are in the protected routes guide.

Week 14: Sessions and error handling in Next.js