Skip to content

Feature Auth

github-actions[bot] edited this page Apr 26, 2026 · 2 revisions

Feature: Auth

ɳSelf includes nHost Auth as a built-in service, providing a full authentication backend out of the box.

What's Included

Capability Description
JWT tokens Short-lived access tokens + refresh tokens
OAuth 2.0 GitHub, Google, Facebook, Apple, and more
Magic links Passwordless email login
Email/password Standard username/password auth
MFA Time-based one-time passwords (TOTP)
User management Roles, metadata, session management

How to Enable

Auth is a core service, it is always enabled. No plugin required.

Key Configuration Variables

Variable Description Default
AUTH_JWT_SECRET JWT signing secret Auto-generated
AUTH_CLIENT_URL Allowed redirect URL after login Required
AUTH_SERVER_URL Auth service public URL Derived from BASE_DOMAIN
AUTH_RATE_LIMIT Auth endpoint rate limit 30r/m
AUTH_SMTP_HOST SMTP host for magic link emails Optional

OAuth Provider Setup

To enable OAuth providers, set the relevant env vars:

AUTH_PROVIDER_GITHUB_ENABLED=true
AUTH_PROVIDER_GITHUB_CLIENT_ID=your-client-id
AUTH_PROVIDER_GITHUB_CLIENT_SECRET=your-secret

See Also


Home | _Sidebar

Home


Getting Started


Commands


Features


Configuration


Plugins (87 + 10 monitoring)

Free (25)
Pro (62)
Planned (26)
  • plugin-audit
  • plugin-blog
  • plugin-checkout
  • plugin-commerce
  • plugin-drm
  • plugin-export
  • plugin-flow
  • plugin-import
  • plugin-ldap
  • plugin-mailgun
  • plugin-media
  • plugin-oauth-providers
  • plugin-pages
  • plugin-postmark
  • plugin-rate-limit
  • plugin-reports
  • plugin-saml
  • plugin-scheduler
  • plugin-sendgrid
  • plugin-sso
  • plugin-subscription
  • plugin-thumb
  • plugin-transcoder
  • plugin-twilio
  • plugin-waf
  • plugin-watermark

Guides


Architecture


Reference


Licensing


Security


Brand


Operations


Contributing


Admin


Changelog

Clone this wiki locally