View as Json

Hybrid Auth Starter

Hybrid Auth Starter is a production-ready foundation for Express.js applications with modern authentication patterns and best practices.

It includes stateless JWT access tokens with server-tracked sessions to give you fast authorization with strong session control.

This foundation is built using the Hybrid Auth blueprint as its base. Hybrid Auth Blueprint


Installation Guide

Initialize Hybrid Auth with your preferred database setup:

1. MongoDB + Mongoose

npx servercn-cli@latest init hybrid-auth --db=mongodb --orm=mongoose

2. MySQL + Drizzle

npx servercn-cli@latest init hybrid-auth --db=mysql --orm=drizzle

3. PostgreSQL + Drizzle

npx servercn-cli@latest init hybrid-auth --db=postgresql --orm=drizzle


Loading files...

File & Folder Structure

......

Installation

npx servercn-cli init hybrid-auth --db=mongodb --orm=mongoose