Config
The authentication configuration for React Router.
Installation
npx shadcn add https://aura-stack-ui.vercel.app/r/react-router-setup.jsonCreate the auth configuration file
import { createAuth } from "@aura-stack/react-router"
export const auth = createAuth({
// Add your authentication configuration here
})Create the auth client file
import { createAuthClient } from "@aura-stack/react-router/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