NextAuth.js
هذا المحتوى لا يتوفر بلغتك بعد.
NextAuth.js is a complete open-source authentication solution for Next.js applications. It is designed from the ground up to support Next.js and Serverless. It has built-in support for many popular sign-in services.
Advantages of NextAuth.js
- Designed to work with any OAuth service, it supports OAuth 1.0, 1.0A, 2.0 and OpenID Connect
- Supports email / password less Authentication
- Supports stateless authentication with any backend (Active Directory, LDAP, etc)
- Supports both JSON Web Tokens and database sessions
- Built-in support for MySQL, MariaDB, PostgreSQL, SQL Server, MongoDB and SQLite
- Can also be used without a database (e.g. OAuth + JWT)
- Designed to be secure by default and encourage best practices for safeguarding user data
Auth Providers
NextAuth.js offers authentication providers services that can be used to sign in a user.
- Using a built-in OAuth Provider (Ex: Facebook, LINE, GitHub, Twitter, Google, Naver, Reddit, Discord)
- Using custom OAuth Provider
- Using Email
- Using Credentials
Useful Resources
- NextAuth.js Docs https://next-auth.js.org/
- NextAuth.js GitHub https://github.com/nextauthjs/next-auth
- NextAuth.js FAQ https://next-auth.js.org/faq