šŸ“„ next-auth/guides/basics

File: basics.md | Updated: 11/15/2025

Source: https://next-auth.js.org/guides/basics

Skip to main content

šŸŽ‰ NextAuth.js is now part of Better Auth !

Version: v4

On this page

Securing pages and API routes

​

  • How to restrict access to pages and API routes.

Usage with class components

​