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

💡 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/next-a… Please leave a comment/feedback if interested! 🙏
20
44
557
If you want to learn about Web Security, give this course by @feross a go!
A full free Stanford course on Web Security: stanford.io/2UHIu65 & all the videos too: bit.ly/web-se-vids by @feross 🍪 HTTP(S), Cookies, Sessions 🛡 Same Origin Policy 👿 Cross-Site Scripting (XSS) ☠️ Cross-Site Script Inclusion 🔑 WebAuthn and more.
1
5
33
Twitter OAuth 2 support is coming soon to NextAuth.js! 🎉
I'm so happy to have decided to give my opinion in their beta phase! The /users/me endpoint was my suggestion! 😊 Nice work, Twitter! 🙏
2
14
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`
13
50
356
Honorable mentions ◆ Custom brand color/logo on built-in pages 💅 ◆ Session cookie chunking (no session size limit with JWT) ◆ 10x reduced install size (by decoupling the TypeORM adapter from core) (edited)
10
TypeScript ◆ Means increased confidence for our users ◆ Safe and rapid iteration for us ◆ All Adapters are written in TypeScript as well
7
Middleware Support ◆ Use `getToken` in Next.js `_middleware` when using JWT sessions. (Database session support is being evaluated.) Example at our next-auth-example repo, will be documented soon as well. github.com/nextauthjs/next-a…
2
15
Security ◆ Audited source code ◆ JWT sessions using encryption (JWE) by default. Thanks, @_panva! Consistency: ◆ Named parameters across public APIs for less verbose configuration ◆ Upfront config assertion to catch misconfiguration early
2
Improved Adapters ◆ Stricter evaluation for consistency ◆ Reduced core size by being modular ◆ Drastically simplified API ◆ Easier, more extensible initialization ◆ Support for: @prisma, @fauna, @MongoDB, @neo4j, @SequelizeJS, @dgraphlabs, @MikroOrm, @dynamodb, @typeormjs
1
11
Most of you who follow me probably know me by my work at @nextauthjs, but here is a small intro to it, and how I got involved in the project, thanks to @iaincollins! balazsorban.com/blog/next-au…
2
2
18
New beta (hopefully the last... 🤫) is out! 🔒️ fixed a few bugs 🐛 🔒️ cookie chunking 🔒️ clock skew/timeout tolerance 🔒️ introduced some small breaking changes, (should be covered in the migration docs), for more secure defaults Changelog here: github.com/nextauthjs/next-a…
2
5
23
Launch week is live! Stay tuned for all of our daily releases. Today, we released a new PlanetScale Next.js starter app! We're excited to share how NextAuth.js, @netlify, @prisma, and PlanetScale work together. planetscale.com/blog/nextjs-…
8
Replying to @magic_labs
TYSM Adam, for making some ✨magic✨ for the Magic community! 🪄 Adam's super rad Recipe Book: ajax-recipes.vercel.app/logi… 🪄 Use the Magic Login Form with Next-Auth: github.com/AJax2012/magic-wi…
7
Hi @clerk thanks for supporting @nextauthjs through @opencollect! 🎉😊💚 (If you or your company enjoys next-auth, consider checking out opencollective.com/nextauth)
1
2
8
This happened overnight, but NextAuth.js already supports Next.js 12 Middleware, if you are using (the default) JWT sessions!
3
2
49