Vercel, the creators of Next.js, are now sponsoring NextAuth.js! We're an open source authentication library for Next.js which is:
🔒 Growing quickly with ~250k downloads/mo
🔒 Supports 6+ database adapters
🔒 Built-in support for 58+ auth providers
Thank you @vercel!
💡 We are proposing a new way to add authentication/authorization to your app or a subdirectory in a single line using @nextjs Middleware!
See the proposal PR here: github.com/nextauthjs/nex…
Please leave a comment/feedback if interested! 🙏
NextAuth.js Middleware is already compatible! Check out 4.7.0!
Just put `export { default } from "next-auth/middleware"` in your `middleware.ts` file, and your app is secured!
Read more:
Next.js 12.2:
◆ Middleware: Dynamic routing for your entire app
◆ On-Demand ISR: Update content without redeploying
◆ Edge Runtime (Exp): API Routes and SSR based on Web standards
◆ `next/image` (Exp): Faster & more flexible new version
nextjs.org/12-2
📚 Our brand new documentation is alive on authjs.dev! It has been rebuilt from scratch, with all new content, including framework switchers, and focus on Auth.js libraries.
NextAuth.js now supports @nextjs 13 Server Components in the `app` directory! Give it a try! 🎉
(For client components, define a `layout.js` in the highest common segment with the `use client` directive and wrap it with `SessionProvider`. The `pages` directory works as before.)
v4 is out! 🚀📦️
🔒️ Improved Providers (better OAuth, OIDC support)
🔒️ Improved Adapters
🔒️ More secure/consistent by default
🔒️ Middleware Support
🔒️ Fully rewritten in TypeScript
🔒️ Decoupled core from API Routes
🔒️ ... and more!
`npm i next-auth@latest`
📢 NextAuth.js v4 first beta is out! 🎉
No further API changes are planned (except bug fixes 🐛).
We need your feedback before releasing it to stable. 🙏
🔽 Get it now: `npm i next-auth@beta`
Migration docs 📚: docs-nextauthjs.vercel.app/getting-starte…
Release notes 📔:
github.com/nextauthjs/nex…
`[email protected]` is out! 📦
The last releases included bug fixes, but notably, we renamed `unstable_getServerSession` to `getServerSession`, since it's been recommended for a while.
We focus on Auth.js, but we wanted to let you know that `next-auth` is still well-maintained.
Good news! 📦🎉 We just released an official @DrizzleORM `@auth/drizzle-adapter`! Check out the docs: authjs.dev/reference/adap…
(Works with both NextAuth.js and Auth.js libs)
Great work by @anthonysheww!
Prisma is now sponsoring NextAuth.js! With NextAuth.js and the Prisma adapter you can roll authentication in a Next.js app in minutes using your own database.
🔒 Flexible serverless authentication
🔒 Own your auth data with Prisma
🔒 Flexible and easy to use
Thanks @prisma