← Back to Browse
Security

AuthKit

Drop-in authentication with JWT, OAuth, magic links, and session management for Express apps.

★★★★★ 4.9 456 reviews
18.2k installs
v4.0.1 MIT

Install

npx skilldock install auth-kit

About

AuthKit provides complete authentication infrastructure in one install. Includes email/password with bcrypt, JWT access/refresh tokens, OAuth2 (Google, GitHub, Discord), magic link emails, session management, RBAC, and rate-limited login attempts. Zero-config Express middleware.

Usage Example

const { auth } = require("auth-kit");

auth.init(app, {
  providers: ["email", "google", "github"],
  jwt: { secret: process.env.JWT_SECRET },
  magicLink: true
});

// Protected route
app.get("/dashboard", auth.protect(), handler);