Aura UI

Config

The authentication configuration for Next.js.

Installation

npx shadcn add https://aura-stack-ui.vercel.app/r/next-setup.json

Create the auth configuration file

lib/auth.ts
import { createAuth } from "@aura-stack/next"

export const auth = createAuth({
  // Add your authentication configuration here
})

Create the auth client file

lib/auth-client.ts
import { createAuthClient } from "@aura-stack/next/client"

export const authClient = createAuthClient({
  // Add your authentication client configuration here
})

What goes in createAuth

The createAuth function initializes the Aura Auth instance with configuration options for OAuth providers, session management, cookie handling, and security settings. For more details, read the Aura Auth documentation

What goes in createAuthClient

The createAuthClient function initializes the client-side Aura Auth instance that interacts with the server-side auth instance. For more details, read the Aura Auth documentation