Authentication for the Web. Open Source. Full Stack. Own Your Data. For any JS framework/runtime.

📚 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.
28
53
421
44,346
Replying to @mediocrelychee
You can start with something like auth.js all open source sets up database for you
1
1
12
5,879
Update! Got joined by another 🐐! We did an offsite in Lofoten Islands (Norway), planning/working on the NextAuth.js v5 stable release, our new documentation, and started to work on guidelines for new framework integrations. But above all, we had a great time together! 💚
Tell me your open-source project is successful, without telling me your open-source project is successful. Welcome @thanghvu in Norway! Some good @nextauthjs work is on the way... 👀 Brought to you by our @opencollect sponsors. 💚
2
1
36
7,861
🎉💰 The Auth.js team is happy to sponsor @_panva for his outstanding work in the JS authentication ecosystem! It's likely that you or your company relies on one of his packages directly or indirectly. Auth.js does, and it's invaluable! Consider sponsoring him or us! 💚
4
27
4,598
Go and convince your boss to sponsor your favorite open-source developer right now! We love install stats and other vanity metrics around here, but this is what peak open-source collaboration should allow! Thankful for our sponsors at @opencollect! Consider supporting us. 💚
Tell me your open-source project is successful, without telling me your open-source project is successful. Welcome @thanghvu in Norway! Some good @nextauthjs work is on the way... 👀 Brought to you by our @opencollect sponsors. 💚
3
15
4,783
Did some cleanup in the @nextauthjs monorepo this evening. Also worked on @sveltejs Auth, it now exposes providers directly, no need to install the core lib! (I intend to give a bit more love to SvelteKit Auth from now on.) `npm i @​auth/sveltekit` or sveltekit.authjs.dev
3
2
52
7,306
Replying to @authjs
@nextauthjs documentation has been criticized recently. Since I've mostly worked on it alone, I can only say sorry, but now I would like to focus on it much more and address as much as possible! Leave a comment what's the most confusing/what should be prioritized.
21
6
76
11,154
I've written some new @nextauthjs docs around database adapters. Actually, most adapter setups (and related database models) can be much simpler! Check this out: authjs.dev/guides/adapters/c… Basic user management only needs 2 tables and 5 properties in your db!
10
93
12,903
Did you know that the ChatGPT site uses @nextauthjs? 👀 That means quite a few weekly active users for NextAuth.js, too!
16
11
297
53,812
📣 Auth.js/NextAuth.js *has and always will support logging in with credentials* (for example email and password). It's our most versatile login option and can be used (and abused!) in so many ways.
Replying to @pilcrowonpaper
github.com/lucia-auth/lucia/… Since Auth.js was mentioned, I decided to clarify the call out about our credentials provider. TLDR; We are on pair. Definitely not making it "harder" than *what's necessary*! Those who don't realize this shouldn't implement it themselves!
6
2
77
24,210
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
4
22
386
44,486
Did you know? We have an official @HasuraHQ adapter now! authjs.dev/reference/adapter…
3
7
82
11,575
Auth.js retweeted
authjs.dev/reference/adapter… the D1 Adapter for Auth.js got released last week, just in time 🚢
We’re unlocking the ability for developers to build production-scale applications on D1! Now in open beta, D1 now offers higher per-database storage limits and the ability to create more databases! Read our blog to learn more bit.ly/46sldrZ
1
18
5,020
Auth.js retweeted
You don't need to spend a bunch of time on authentication for your NextJS App Router App. Let me show you how to set it up, protect routes, get user information in server actions and API routes, and how to make authenticated API calls on from both client and server components! Everything you need to know! youtu.be/md65iBX5Gxg
18
33
362
89,492
Protect routes with next-auth middleware in Next.js 13
23
132
1,255
139,640
Auth.js retweeted
I shipped something! It's an 2FA authentication example using @nextauthjs + @vercel KV (@upstash) + SimpleWebAuthn (by @IAmKale). Check it out here: next-auth-webauthn.vercel.ap… NextAuth.js built-in Webauthn support 🔜 👀
3
2
20
4,671
Let us know if something is unclear or you would like a better explanation!
1
1
4
2,565
`getServerSession`: next-auth.js.org/configurati… Route Handler initialization: next-auth.js.org/configurati… Middleware: next-auth.js.org/configurati…
1
1
6
3,343
Reminder: NextAuth.js works in App Router. Initial support has been added back in 2022 November. Route Handler initialization has been supported since April. You can use NextAuth.js entirely via `app/` only. Already documented, just not prioritized everywhere yet. Working on it!
🎉 `next-auth@4.22.0` has shipped built-in Route Handlers support! Check out the docs: next-auth.js.org/configurati… Together with `getServerSession`, you can now create a Next.js app exclusively with the App Router and NextAuth.js. (`pages` will stay supported, this is opt-in!)
9
12
119
32,193
We now have an official @kysely_ `@​auth/kysely-adapter` 📦🎉 too! (Works with both NextAuth.js and Auth.js libs) Check out the docs: authjs.dev/reference/adapter… Fantastic work by our community 💚!
2
6
96
11,947