Skip to content

AuthHero Installation

Requirements

  • Node.js (version 20 or higher; CI-tested on Node.js 22.x)
  • npm, yarn, or pnpm package manager

Installation

Install the AuthHero package in your project:

bash
pnpm add authhero

Or using npm:

bash
npm install authhero

Or using yarn:

bash
yarn add authhero

Basic Usage

Here's a basic example of integrating AuthHero in your application:

typescript
import { AuthHero } from "authhero";

// Configuration details will go here

const authHero = new AuthHero(config);

// Authentication methods will be shown here

Next Steps

After installation, you'll need to configure AuthHero for your specific use case. See the Configuration page for details.

Dual-licensed: AGPL-3.0-only or commercial license.