flâneur — a map of the web's best reading

Learn Next.js: Adding Authentication | Next.js

nextjs.org · 2,632 words · saved by 1 readers

In the previous chapter, you finished the invoices funcionality by adding form validation and improving accessibility. In this chapter, we'll be adding authentication to our application. In this chapter... Here are the topics we’ll cover What is authentication. How to add authentication to your app using NextAuth.js. How to use Middleware to redirect users and protect your routes. How to use React's `useFormStatus` and `useFormState` to handle pending states and form errors. Authentication is a key part of many web applications today. It's how a system checks if the user is who they say they are. A secure website often uses multiple ways to check a user's identity for enhanced security. For instance, after entering your username and password, the site may send a verification code to your device or use an external app like Google Authenticator. This 2-factor authentication (2FA) helps increase security. Even if someone learns your password, they can't access your account without your un

14 Chapter 14 Adding Authentication In the previous chapter, you finished building the invoices routes by adding form validation and improving accessibility. In this chapter, you'll be adding authentication to your dashboard. In this chapter... Here are the topics we'll cover What is authentication. How to add authentication to your app using NextAuth.js. How to use Proxy to redirect users and protect your routes. How to use React's useActionState to handle pending states and form errors. What is authentication? Authentication is a key part of many web applications today. It's how a system che

Explore this link on the map →

related reading