Nibirdeka7/authflow: A plug-and-play authentication engine for Node.js ,email/password signup, OTP login, email verification, JWT cookies.
github.comยท5dยท
Discuss: r/node
๐Ÿ’šNode.js
Preview
Report Post

๐Ÿ“– AuthFlow Backend โ€“ Complete Documentation

@nibir_dev/authflow

A production-ready, zero-configuration authentication system for Express.js + MongoDB. Handle user authentication, email verification, password resets, and protected routes with minimal code.


๐Ÿš€ Quick Start

๐Ÿ“ฆ Installation

npm i @nibir_dev/authflow

Configuration

import express from 'express';
import authflow from '@nibir_dev/authflow';

const app = express();
app.use(express.json());

// Initialize AuthFlow with your config
authflow.init({
mongoURI: 'mongodb://localhost:27017/your-database',
jwtSecret: 'your-super-secret-jwt-key',
mail: {
host: 'smtp.gmail.com',
port: 587,
user: 'your-email@gmail.com',
pass: 'your-app-password'
}
});


// Mount authentication routes
a...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help