Auth.js vs. Clerk

Auth.js

authjs.dev/

Formerly known as NextAuth. It's is an open-source authentication library originally built for NextJS. Auth.js is free to use and comes with over 80 integrations for various third-party identity providers such as Google, Facebook, Auth0, Apple etc. You can use it with your own database if you choose to. It works with MySQL, Postgres, MSSQL and MongoDB. Auth.js is compatible with Next.js, SvelteKit and SolidStart as of March 2024.

Clerk

clerk.com/

Clerk is a comprehensive authentication and user management platform. It comes with embeddable UIs, APIs and admin dashboards for user management. Clerk offers official SDKs for Next.js, React, JavaScript, Node.js, Remix, Go, Gatsby, and Ruby / Rails. There are many more community SDKs for other frameworks and languages. They have a free tier of 10,000 MAUs and a $25/month Pro tier with $0.02/MAU. Enhanced authentication, with SMS auth, device tracking and revocation, simultaneous sessions and SAML authentication costs additional $100/month. Admin add-on, with user impersonation and enhanced roles is another $100/month.

Image for Auth.js
Auth.js
Image for Clerk
Clerk
No reviews yet
No reviews yet

Pros

Cons

Pros

Cons

Frequently Asked Questions

@tomasz_fm© 2023 Tomasz Stefaniak
feedback