FortressAuth
Secure-by-Default Authentication
A production-ready authentication library built with TypeScript and hexagonal architecture. Database-agnostic, email provider-agnostic, and secure by default.
Secure by Default
Argon2id hashing, split tokens, and timing-attack prevention built-in
Database Agnostic
Works with PostgreSQL, MySQL, and SQLite out of the box
Fast Integration
Get up and running in minutes with React, Vue, or Angular SDKs
Production Ready
Rate limiting, account lockout, and email verification included
Built for Security & Flexibility
Everything you need to implement secure authentication without compromising on developer experience
Developer Experience First
Clean, type-safe APIs that make authentication a breeze
import { FortressAuth, MemoryRateLimiter } from '@fortressauth/core';
import { SqlAdapter } from '@fortressauth/adapter-sql';
// Initialize FortressAuth in 5 lines
const fortress = new FortressAuth({
repository: new SqlAdapter(db, { dialect: 'sqlite' }),
rateLimiter: new MemoryRateLimiter(),
});
// Sign up a user
const result = await fortress.signUp({
email: 'user@example.com',
password: 'SecurePassword123!',
});
if (result.success) {
console.log('User created:', result.data.user);
}Basic Server
Complete Node.js server example with SQLite database, session management, and email verification.
React Web App
Full React application using @fortressauth/react-sdk with auth hooks and protected routes.
Vue Web App
Vue 3 application with composables for authentication state and seamless integration.
Svelte Web App
Svelte 5 application with authentication state and seamless integration.
Angular Web App
Angular application with authentication state and RxJS integration.
Expo Mobile App
React Native mobile app built with Expo, featuring secure token storage and deep linking.
Electron Desktop App
Cross-platform desktop application with secure credential storage using the Electron SDK.