Image
user avatar
Auth.js
Better Auth
@authjs
Authentication for the Web. Open Source. Full Stack. Own Your Data. For any JS framework/runtime.
Joined June 2020
  • Pinned
    user avatar
    An update from the Auth.js team:
  • user avatar
    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!
    Vercel + NextAuth.js logo
  • user avatar
    💡 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! 🙏
    Code example. Gist available at https://gist.github.com/balazsorban44/da104a7549ae1c302f97b1b0b7ef4f3b
  • user avatar
    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
    next-auth.js.org
    Next.js | NextAuth.js
    getServerSession
  • user avatar
    📚 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.
  • user avatar
    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.)
  • user avatar
    The new Next.js Learn course is using NextAuth.js! 🎉
    Next.js 14 ◆ next dev --turbo ↳ 53% faster local server startup ↳ 94% faster code updates ◆ Server Actions (Stable) ◆ Partial Prerendering (Preview) ◆ New Next.js Learn Course ↳ App Router ↳ Authentication ↳ Postgres nextjs.org/14
  • user avatar
    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`
  • user avatar
    ✨ Announcing the Auth.js CLI! The CLI tool by Auth.js to supercharge your authentication workflows.
    npx auth # Auth.js CLI
  • user avatar
    v4.2 is out! 🚀 🔒️ Next.js Middleware support 🔒️ Automatic secret detection (NEXTAUTH_SECRET env variable) 🔒️ TypeScript improvements 🔒️Option to disable session refetch on window focus 🔒️ new providers 🔒️ bug fixes 🔒️... and more!
  • user avatar
    📢 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…
  • user avatar
    `[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.
  • user avatar
    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!
  • user avatar
    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
    Prisma & NextAuth.js logos