authlite-secure
v1.0.2
Published
AuthLite-Secure 🔐 A lightweight authentication library for Node.js with JWT & OAuth support
Readme
AuthLite-Secure 🔐 A lightweight authentication library for Node.js with JWT & OAuth support
📌 Features -> User Authentication (Register & Login) -> JWT Support (Generate & Verify Tokens) -> OAuth2 Integration (Google, GitHub, etc.) -> Secure Password Hashing (bcrypt) -> Simple API with Minimal Dependencies
🚀 Installation => npm install authlite-secure <=
🛠 How It Works 1️⃣ User Authentication
- Passwords are hashed using bcrypt.
- Users are stored in-memory (DB support in future versions).
2️⃣ JWT Authentication
- Uses jsonwebtoken to create & verify secure tokens.
3️⃣ OAuth2 Authentication
- Supports Google OAuth (GitHub, Discord coming soon).
- Expects a Google OAuth access token and returns user info.
🔜 Upcoming Features & Enhancements:-
- Short-lived access tokens with automatic refresh system.
- Integrate with Web3 wallets (MetaMask, WalletConnect) for login.
- Email & Magic Link Login (users get a login link instead of passwords).
- Optional in-memory session handling for fast authentication.
