Auth Center is an OAuth2.0 authorization server with TOTP (Time-based One-Time Password) support for Node.js. Version 2.2.0 (stable) includes built-in admin UI, supports MySQL, PostgreSQL, SQLite, and MariaDB via Sequelize ORM, and provides both CLI and programmatic interfaces. It implements the OAuth2.0 authorization code grant flow and enhances password authentication with TOTP. Compared to alternatives like oauth2orize, it offers an all-in-one solution with session management (Redis support), email integration, and database schema synchronization.
npm install auth-centerVerified import paths — ran on the pinned version, not inferred.
Initializes an Auth Center server with SQLite, syncs database schema, and listens on port 3000.
Upgrade Node.js to version 8 or higher.
Use alter: true or migrate manually instead of force.
Use authorization code flow or extend the library.
Always set session.secret in config.
Use 'postgres' (lowercase) in orm.dialect.
Run 'npm install auth-center --save' in project root.
Create the database manually or set orm.dialect to 'sqlite' for file-based storage.
Use 'const server = AuthServer(config);' without 'new'.