
Auth.js Has a Free API — Universal Authentication for Any JavaScript Framework
What if one auth library worked with Next.js, SvelteKit, Express, Remix, Solid, and Qwik — with 80+ OAuth providers? Auth.js (formerly NextAuth.js) is the universal authentication library for JavaScript frameworks. Why Auth.js Framework-agnostic — Next.js, SvelteKit, Express, SolidStart, Qwik 80+ providers — Google, GitHub, Discord, Apple, and more Database adapters — Prisma, Drizzle, Supabase, MongoDB, DynamoDB Passwordless — email magic links, WebAuthn/passkeys Self-hosted — your data stays on your servers Free and open source — MIT licensed Quick Start with Next.js npm install next-auth@beta // auth.ts import NextAuth from " next-auth " ; import GitHub from " next-auth/providers/github " ; import Google from " next-auth/providers/google " ; export const { handlers , auth , signIn , signOut } = NextAuth ({ providers : [ GitHub ({ clientId : process . env . GITHUB_ID , clientSecret : process . env . GITHUB_SECRET }), Google ({ clientId : process . env . GOOGLE_ID , clientSecret : proc
Continue reading on Dev.to Webdev
Opens in a new tab



