-
-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
Amit Das edited this page Apr 28, 2026
·
1 revision
Welcome to the SecureAuth setup guide.
This guide will help you install and run SecureAuth locally for development.
Before starting, make sure you have:
- Node.js 18+
- npm
- Firebase Realtime Database
- TextSnap API credentials
git clone https://github.com/AmitDas4321/SecureAuth.git
cd SecureAuthnpm installCreate a .env file in the project root.
Example:
# ===============================================
# SecureAuth Environment Configuration
# ===============================================
APP_NAME="SecureAuth"
APP_URL="http://localhost:3000"
# TEXTSNAP CONFIGURATION
TEXTSNAP_INSTANCE_ID="YOUR_INSTANCE_ID"
TEXTSNAP_ACCESS_TOKEN="YOUR_ACCESS_TOKEN"
# FIREBASE CONFIGURATION
FIREBASE_DATABASE_URL="YOUR_FIREBASE_DATABASE_URL"
FIREBASE_DATABASE_SECRET="YOUR_FIREBASE_DATABASE_SECRET"
# SECURITY CONFIGURATION
JWT_SECRET="YOUR_SUPER_SECRET_KEY"
ENCRYPTION_KEY="YOUR_ENCRYPTION_KEY"Run:
npm run devOpen:
http://localhost:3000SecureAuth authentication process:
- User enters phone number
- OTP generated securely
- OTP sent via WhatsApp
- User verifies OTP
- JWT session created securely
- Session stored securely
- User accesses protected dashboard
- Authenticator account management
- Multi-device sessions
- Encrypted cloud sync
- Backup & restore system
- App lock protection
- Session monitoring
npm run devnpm run buildnpm startSecureAuth
├── src/
├── public/
├── server.ts
├── package.json
├── vite.config.ts
├── .env
└── README.mdlsof -i :3000Kill process:
kill -9 PIDAdd allowed hosts inside vite.config.ts
server: {
allowedHosts: ['yourdomain.com']
}Continue with:
Secure • Fast • Modern ⚡
SecureAuth
Secure • Fast • Modern ⚡