delta-auth-next
v0.1.60
Published
A lightweight authentication system for Next.js that provides React context providers and Edge-safe middleware utilities for handling sign-in redirects and session management.
Downloads
4,533
Maintainers
Readme
📦 delta-auth-next
delta-auth-next is a cookie-based authentication SDK for React and Next.js applications, inspired by Clerk — but built to work seamlessly with custom backends, HTTP-only cookies, and modern security best practices.
It abstracts session handling, user fetching, auto refresh, and environment safety checks into a simple provider + hooks API.
✨ Features
🔐 Cookie-based authentication (no localStorage tokens)
⚛️ Works with React & Next.js (App Router + Pages Router)
🍪 HTTP-only cookie session support
🔄 Auto session refresh
🚨 Optional built-in alerts via react-hot-toast
🧠 /auth/me session bootstrap
👤 Fetch full user profile on demand
🔑 Prevents test keys in production & live keys on localhost
📦 Lightweight, tree-shakable SDK
🧩 Designed for custom auth backends (FastAPI, Node, etc.)
