Production Ready

Seedhe AuthAuthentication Made Simple

A lightweight Node.js authentication library with OAuth integration, JWT support, and multiple database backends. Perfect for Express.js applications.

View Documentation
OAuth
Google & GitHub
JWT
Token Auth
3 DBs
Mongo, Postgres, Memory
Express
Ready

Key Features

Everything you need for modern authentication in your Node.js applications.

OAuth Integration
Seamless Google and GitHub OAuth authentication with easy configuration and callback handling.
JWT Authentication
Secure JWT token generation and validation with configurable secrets and expiration times.
Multiple Databases
Support for MongoDB, PostgreSQL, and in-memory storage with easy database switching.
Express.js Ready
Drop-in Express.js integration with middleware support and cookie-based session management.

Quick Start

Get started with Seedhe Auth in minutes

Install and set up
Follow these three steps to get running quickly.

1) Install the package

npm install seedhe-auth

2) Configure environment variables

JWT_SECRET=your_jwt_secret
DB_TYPE="mongo" # or "postgres" or "memory"
MONGO_URI=your_mongo_connection_string
GOOGLE_CLIENT_ID=your_google_client_id
GITHUB_CLIENT_ID=your_github_client_id

3) Add to your Express app

import { initAuth } from "seedhe-auth";
const { authService, authRoutes } = await initAuth();
app.use("/auth", authRoutes);