X Enterprises

Configuration

app.config.ts and runtimeConfig reference for @xenterprises/nuxt-x-neon-auth.

Configuration

app.config.ts

export default defineAppConfig({
  xAuth: {
    redirects: {
      login: '/auth/login',
      signup: '/auth/signup',
      afterLogin: '/',
      afterSignup: '/',
      afterLogout: '/auth/login',
    },
    features: {
      oauth: false,
      magicLink: false,
      otp: false,
      forgotPassword: true,
    },
    socialLoginProviders: ['google'],
  },
})

Schema Reference

KeyTypeDefaultDescription
redirects.loginstring'/auth/login'Path of the login page.
redirects.signupstring'/auth/signup'Path of the signup page.
redirects.afterLoginstring'/'Redirect destination after a successful login.
redirects.afterSignupstring'/'Redirect destination after a successful signup.
redirects.afterLogoutstring'/auth/login'Redirect destination after logout.
features.oauthbooleanfalseEnable OAuth/social login.
features.magicLinkbooleanfalseEnable magic link authentication.
features.otpbooleanfalseEnable OTP authentication.
features.forgotPasswordbooleantrueEnable password reset flow.
socialLoginProvidersOAuthProvider[]['google']OAuth providers to display. Supports Google, GitHub, Apple, Microsoft, Discord, Facebook, Twitter, LinkedIn, and 30+ more via Better Auth.

Runtime Config / Environment Variables

VariableRequiredDescription
NUXT_PUBLIC_NEON_AUTH_URLYesNeon Auth endpoint URL (e.g. https://your-project.neonauth.xxx.neon.tech/your-db/auth).

AI Context

package: "@xenterprises/nuxt-x-neon-auth"
config-key: xAuth
use-when: >
  Configuring redirect paths, enabling/disabling features (OAuth, magic link,
  OTP, forgot password), or listing social login providers for nuxt-x-neon-auth.
  Set NUXT_PUBLIC_NEON_AUTH_URL to your Neon Auth endpoint URL.
Copyright © 2026