Skip to main content

NAuthConfig

Package: @nauth-toolkit/core Type: Interface

Main configuration object for nauth-toolkit. This page intentionally stays minimal - the full option reference is documented inline in the configuration guide.

import { NAuthConfig } from '@nauth-toolkit/nestjs';

Overview

NAuthConfig is the main configuration object for nauth-toolkit, but its full option reference is documented inline in the configuration guide to avoid splitting context across multiple pages.

  • See Configuration for the complete NAuthConfig reference (all options, defaults, and examples).

Recent additions

  • recaptcha: Google reCAPTCHA v2/v3/Enterprise bot protection. Configure enabled, provider, minimumScore. Use @RequireRecaptcha() decorator on protected endpoints. See RecaptchaConfig and reCAPTCHA Guide.
  • mfa.adaptive.blockedSignIn.scope: control whether Adaptive MFA blocks apply to the user, device, or IP.
  • emailNotifications.suppress.mfaMethodAdded: opt-in email notification when an additional MFA method is added.
  • signup.emailVerification.baseUrl: base URL for email verification links. When configured, verification emails include a clickable link with the code (format: ${baseUrl}?code=${code}). The consumer app handles routing. Supports both development (localhost) and production URLs.